Post

Replies

Boosts

Views

Activity

Reply to Not sure why Swift is giving me a "Cannot find 'xFile' in scope" error
The rule you are breaking is that capitalization matters when you spell a name. You're saying xFile = ... So the Swift compiler looks for the term xFile declared as a variable name in scope, to which something can be assigned. But the word xFile doesn't appear as a variable name in scope — just as the compiler is telling you. What does appear as a variable name in scope is xfile, which as far as Swift is concerned is a totally different name.
Apr ’22
Reply to I'm Loving the New UISplitViewController in iOS14
I agree. The idea of two completely different flows emanating from primary + secondary on the one hand and compact on the other, where all three view controllers just stick around during collapse and expand, is so simple and elegant. It took me only a very short time to make a working example that works on iPad toggling between splitscreen and fullscreen, and on iPhone 8 Plus rotating between portrait and landscape. Gone is all the kerfuffle with the obscure delegate methods and the button management; everything just works.
Jul ’20