I donā€™t quite understand how swift applications work | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I donā€™t quite understand how swift applications work

Hi, I am currently studying game development and Iā€™ve recently received a Mac so I can develop applications on iOS and macOS. I have programmed Java and C# applications before with a game loop function named ā€œupdate()ā€ and also ā€œdrawAllComponents()ā€ at the end of the update function. All I simply need is just a function to draw vertices, connect and fill (basically a polygon), all of the shapes like a rectangle or a circle I can implement myself as long as I have a vertex(x, y) function. But swift contains stuff like UIView, body {}, and I donā€™t want to use the SpriteKit, I want to implement all those things by myself. Am I missing something or app development is very different in swift? Iā€™ve seen tutorial on YouTube but non got an update function so it makes me very confused because I am used to calling every component in my game, and not automatically update it.

22nd Dec 2020, 2:01 AM
Frumkin
Frumkin - avatar
1 Answer
+ 3
Please see swift's official sites, it gives you all functions and their work :) https://developer.apple.com/swift/
22nd Dec 2020, 6:43 AM
Abhiyantā
Abhiyantā - avatar