Post

Replies

Boosts

Views

Activity

Reply to How to define a system date for SwiftUI Preview?
Thank for the answer, but, how i can pass my current date (generated in code) to preview? Example: struct DemoView_Previews: PreviewProvider {   static var previews: some View { let myCustomDate = Date() // just for example       return DemoView() } } How i can pass myCustomDate to DemoView as System Date?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’21