Nolan Waite
Nolan Waite
That's correct. On the plus side, UserDefaults doesn't throw an exception either!
I think that latter idea is equivalent to what this PR does. I couldn't find a way to make a Swift KeyPath from a string, so we're using the old...
Good idea! I'll add the check. No worries at all on PR time, I wanna get it right :)
Assertions added! I considered lazily creating the observer, so people who don't use the projected publisher can continue using the property. But I couldn't come up with a clean way...
@dnkoutso you say this is a "known issue", is there an issue open already?
I disagree, this issue should remain open. The `__has_include` workaround is helpful, but forcing pod authors to deviate from Apple docs doesn’t seem great if it’s possible for CocoaPods to...
My pleasure! Thanks everyone for the ideas and reviews :)
After a brief attempt, I gave up trying to handle the varying ARC requirements between files. Swift Package Manager doesn't seem to allow specifying compiler flags per-file, only per-target. I...
Here's my fix: https://github.com/happybits/STULabel/blob/eded97a3db8e4b104848aebe33c8e9121ab174d1/STULabel/STUMainScreenProperties.m#L60 I lazy-load on first access of the exported `stu_mainScreen…()` functions, with a main thread check to avoid deadlock. If that solution looks appealing then I'd happily...