TIL about Swift’s Unmanaged.passUnretained(self).toOpaque() for interacting with C APIs, and about the &+= operator (overflow operator) and its friends. (https://docs.swift.org/swift-book/LanguageGuide/AdvancedOperators.html)
Anyone know how to correctly implement async Publisher + Subscriber in Combine (so pushes instead of pulls)? I have a ThingManager I can subscribe to and it’ll call a closure I provide. Is this the right way? https://gist.github.com/uliwitness/394b308b4aa457293f679560edcdbd5e
Hey, if I have a framework that does iOS 12 stuff, and I want to add one class/extension to it only for iOS 13, which uses 13-only API, can I do that without making the extension its own framework?
Like if #available but around a class?
I only just learned about xclangspec files for Xcode:
Apparently just in time to see Xcode 11 dropping support for them. I guess LSP is the way forward? If Xcode 11 supports third-party LSP servers, that is.
I make a HyperCard clone at https://stacksmith.org
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either! We adhere to an adapted version of the TootCat Code of Conduct and have documented a list of blocked instances. Ash is the admin and is supported by Fuzzface, Brian!, and Daniel Glus as moderators. Hosting costs are largely covered by our generous supporters on Patreon – thanks for all the help!