Profile Photo
Using Xcode 11.4 and Swift 5.2 beta with my project.   3 of 10 Bindings I use I a SwiftUI project are now generating errors during compilation   Return from initializer without initializing all stored properties  Dont for the life of me understand why.   I assume a compiler bug?
in Swift
Profile Photo
In Providing Data for Your Complication: When the user first places your complication on the active watch face, ClockKit asks for the complication’s initial set of timeline entries. After that, however, it doesn’t typically request additional timeline entries until you explicitly update your timeline.   In Creating a Timeline Entry: ClockKit… (Show more)
in WatchKit
Profile Photo
I have a GameView that has "@State var locationManager: LocationManager" which is passed to my MapView as a binding. The MapView conforms to UIViewRepresentable protocol. LocationManager conforms, among other things, to ObservableObject and has the following conformance-related code:   var didChange = PassthroughSubject<locationmanager,… (Show more)
in SwiftUI
Profile Photo
With the following view.onReceive(     Timer.publish(         every: TimeInterval(60),         on: .current, in: .common     ) ) { _ in } If the app enters background, is the timer publisher suspended automatically? If the app enters foreground later, is the timer publisher resumed automatically?
in SwiftUI
Profile Photo
I am getting an error when trying to fetch objects in SwiftUi in a form sheet modal in iOS 13.   Here's the error: [SwiftUI] Context in environment is not connected to a persistent store coordinator: <NSManagedObjectContext: 0x600003218620>   I am able to run a fetchRequest from a list view, but not in the modal. Has anyone else seen this… (Show more)
in iOS 13 beta
Profile Photo
How to add 2 navigationBarItems onto a navigation bar, one leading and one trailing?
in SwiftUI
Profile Photo
Color's methods such as saturation(), brightness() return View, so do View's methods with the same names. Shouldn't Color's methods return Color, for color manipulation?
in SwiftUI
Profile Photo
How to animate color changes with Color structure and Animatable protocol? AnimatableData supports floating point types only.   (Edited.)
in SwiftUI
Profile Photo
How to convert a UIColor to Color for use in SwiftUI?
in SwiftUI