Learning Swift — Days 157 to 160

Hacking with Swift — Learning Project 38 GitHub Commits Introduction I apologise, this is the second to last project of Hacking with Swift. I still cannot believe I am slowly reaching the end of the first part of this great journey into the wonderful world of Swift. I have so many things in mind forContinue reading “Learning Swift — Days 157 to 160”

Learning Swift — Days 155 to 156

Hacking with Swift — Learning Project 37 Psychic Tester Introduction This is the second to last project in the book. There is so much to learn and I cannot say I could complete all of those challenges but hey, I will one day! I just feel like going on and learn new things! This projectContinue reading “Learning Swift — Days 155 to 156”

Learning Swift — Day 152 to 154

Hacking with Swift — Learning Project 36 Crashy Plane Setting up Create a new Xcode project based on the Game template, select SpriteKit as language and call it “Crashy Plane”, then save it somewhere sensible! We are going back to SpriteKit, aren’t you incredibly excited?! Creating a player: resizeFill vs aspectFill Delete the Actions.sks fileContinue reading “Learning Swift — Day 152 to 154”

Learning Swift — Day 150 to 151

Hacking with Swift — Learning Project 35 Random Numbers Setting up Create a new iOS playground and call it “Random Numbers”. Save it somewhere sensible. Generating random numbers without GameplayKit This is how modern Swift (post 4.2) manages it: Old-fashioned randomness The arc4random() function returns numbers between 0 and 4.294.967.295 … To generate a randomContinue reading “Learning Swift — Day 150 to 151”

Learning Swift — Day 147 to 149

Hacking with Swift: learning project 34, Four in a Row Setting up Create a new Xcode project, call it “Four in a row” and save it somewhere sensible. Set its deployment info to use only iPad and to be only in Landscape orientation. Creating the interface with UIStackView Open Main.storyboard, select the view controller andContinue reading “Learning Swift — Day 147 to 149”