
A few hours after I speculated about pausing work on the tickets app because outputting the tickets was too far out of my expertise, a helpful instance of the Baader–Meinhof phenomenon threw up some help in the form of this tweet from @FloWritesCode. It turns out this was an addition in iOS16 announced at WWDC that makes this straightforward.
As soon as I googled around about it I also found good solutions that wrapped the old code to provide similar functionality. So that’s a lesson for me about not assuming something’s hard before I’ve spent some time investigating it. I took that lesson and applied it to rendering to a PDF, and of course, @twostraws has a code example for that from three days ago!
Obviously I’m going to have some fiddling around to lay it out and so on, and I still need to figure out the share behaviour (which I’m expecting to be straightforward) but it feels like SwiftUI is just going to help me express my intents in code. I’m really enjoying this language, framework and community!
Leave a comment