In this tutorial you’ll create a blackjack game in SpriteKit using Swift 3. You’ll learn about implementing touch, creating visual animations, and many other concepts that will come in handy when building a SpriteKit game.
If you’ve worked with blocks in C or Objective-C or lambdas in Ruby, then you won’t have a hard time wrapping your head around the concept of closures. Closures are nothing more than blocks of functionality that you can pass around in your code.
Up to now, we’ve covered the basics of the Swift programming language. If you followed along, you should now have a solid understanding of variables, constants, functions, and closures. It’s now time to use what we’ve learned and apply that knowledge to the object-oriented structures of Swift.
Are you ready to get beyond the basics of iOS app programming and tackle some more advanced topics?
A few years ago, when I was still an employee in a mobile consultancy, I worked on an app for a big investment bank. Big companies, especially banks, usually have processes in place to ensure that their software is secure, robust, and maintainable.
In the previous article, we explored the basics of functions in Swift. Functions, however, have a lot more to offer. In this article, we continue our exploration of functions and look into function parameters, nesting, and types.
To get anything done in Swift, you need to learn the ins and outs of functions. Functions are exceptionally powerful and flexible in Swift. The basics are simple, especially if you’ve worked with other programming languages before. But because of Swift’s flexible syntax, functions can become confusing if you’re not familiar with the basics.
In the previous article, you learned about variables, constants, and some of the common data types, such as integers, floats, and strings. In this article, we zoom in on collections. Swift’s standard library defines three collection types: sets, arrays, and dictionaries. Let’s start with arrays.
Do you want to develop apps for iOS devices?
Apple introduced their CloudKit framework alongside iOS 8 in 2014. While its main purpose was to act as an online database for iOS applications, CloudKit also offers many other features, including push notifications.