Post

Replies

Boosts

Views

Activity

Comment on How can I migrate Swift 3 applications to Swift 5 in 2021?
I tested on a project created with Swift2 ! And managed to update it directly in Xcode 13ß4 with the process I described in the link above. I had however a problem to open storyboard (kept spinning). I closed project, opened in Xcode 12. I was asked to select a device for IB. Did it, quit XCode12 and reopened in Xcode 13 without problem. I had also to recreate all IBActions connections which were visibly corrupted.
Aug ’21
Comment on HELP! I don't understand Loops.
Additional comment as rule of thumb. You use for loop when you know in advance how many iterations: either because you write explicitly (0...9) or because the number is defined (for item in myArray). You use repeat … while or while when the number of iterations depend on condition that you don't know when you write code, such as while i < someValue where someValue is dynamic value that will change during code execution.
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’21
Comment on emulate mouse click
Right, don't need it, unless you want to execute the tap once window activated. But then, need a CGEvent (I think you saw this already: https://stackoverflow.com/questions/41908620/how-to-simulate-mouse-click-from-mac-app-to-other-application)
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’21