Comparison of Objective-C and Swift on the example of a mobile game
Mobile applications for the iOS platform can be developped using the Swift and Objective-C languages. The article presents a comparison between these languages based on a created mobile game. The structure and performance of these technologies were examined. Based on three devices, languages have been tested. Aspects such as RAM load, time between views, time to save data to the database and time to save data to file were tested as a part of the analysis. Two research hypotheses have been put forward: "Swift has a better performance than Objective-C" and "Swift has a simpler structure than Objective-C". The results obtained confirm that Swift is more efficient than Objective-C. Research into the structure of codes has proven that the newer language has a simpler structure than its predecessor.
Swift; Objective-C; performance; structure
The History of iOS, from Version 1.0 to 13.0, https://www.lifewire.com/ios-versions-4147730 [16.06.2020].
About Swift, https://swift.org/about [16.06.2020].
C. G. Garcia, J. P. Espada, B. C. Pelayo G-Bustelo, J. M. Cueva Lovelle, Swift vs. Objective-C: A New Programming Language,Regular Issue, https://www.researchgate.net/publication/277142254_Swift_vs_Objective-C_A_New_Programming_Language [30.06.2020].
K.E. Sienkiewicz, E. Łukasik, Porównanie aplikacji mobilnej w językach Swift i Objective-C, Journal of Computer Sciences Institutes, http://yadda.icm.edu.pl/yadda/element/bwmeta1.element.baztech-875445e3-044-6b5-b16d-880f12cc7ab3 [30.06.2020].
V. M. Santana, P. Centoze, Seciurity mechanisms and analysis for insecure data storage and unintended data leakage for mobile applications, International Journal of Computer and Technology https://www.researchgate.net/publication/324985466_SECURITY_MECHANSMS_AND_ANALYSIS_FOR_INSECURE_DATA_STORAGE_AND_UNINTENDED_DATA_LEAKAGE_FOR_MOBILE_APPLICATIONS [30.06.2020].
K. Gut, M. Skublewska-Paszkowska, E. Łukasik, J. Smołka, Comparison of programming languages on the iOS platform in terms of performance, IAPGOŚ http://yadda.icm.edu.pl/yadda/element/bwmeta1.element.baztech- 0bbfbb45-b7bf-4703-91aa-169a26d70236 [30.06.2020].
Xcode, https://developer.apple.com/xcode/ [16.06.2020].
SpriteKit, https://developer.apple.com/ documentation/spritekit/ [16.06.2020].
M. Lassoff, T. Stachowitz, Swift Fundamentals: The Language of iOS Development. 2014.
D. Chisnall, Objective-C Phrasebook, Second Edition. 2012.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.