Relative Content

Tag Archive for swiftdateformattercontentviewconform

How to run DateFormatter() in Swift View?

I’m very new to Swift. My question is, I’m putting DateFormatter()in the ContentView and it’s not working and I get Type ‘()’ cannot conform to ‘View’. The DateComponents() and Calendar objects work fine though. What should I do? Here’s the code snippet: