Andrew Zheng
Andrew Zheng
Similar issue online: https://developer.apple.com/forums/thread/709433
Fixed in https://github.com/aheze/SupportDocs/releases/tag/1.1.1
The original instance of an `ObservableObject` should be `StateObject`, I think. https://www.hackingwithswift.com/quick-start/swiftui/what-is-the-stateobject-property-wrapper
However `@StateObject` is iOS 14+... idk if there's a way to define different properties based on iOS version. I'll look into it.
@aehlke it just seems kind of weird to add `if os` in every file... I'll accept it for now and look into it more.
Yeah, I've been working on some other projects... maybe just use a `.sheet` instead. Popovers is meant for more lightweight views like tips and notifications
@Roman-Kerimov how safe is this approach? It works fine in my testing but using NumberFormatter for this seems sketchy.
Happens in the slime demo too: ![image](https://user-images.githubusercontent.com/49819455/192609136-c7f1bc0c-4d02-4253-b536-7cf7ded78ce9.png)
Nice, thanks! Does this compile though on mac? I think I might have referenced from UIKit-only colors like `UIColor.secondarySystemBackground`, so not sure if a typealias fixes everything