If you’re building a mobile app, you’ll almost certainly need to store and retrieve data. And you can’t always rely on the user’s connectivity, so your app still needs to work even if the user isn’t online.
If you’re looking for a comprehensive guide to design patterns, our new course is ideal for you. In Swift Design Patterns, you’ll get 24 detailed videos totalling 3.5 hours of viewing time, in which you’ll learn some common design patterns that you can use over and over in many different languages.
In the previous tutorials, we took a look at the Realm Platform as well as the on-device Realm Database for iOS. In that post, you learned how to synchronize your app data locally as well as in the cloud. While this presents a complete solution for many developers, you may want to do more than just persist data, but also run server-side logic.
In this tutorial, I’ll continue from my previous tutorial on Realm Mobile Database for iOS where we learned about Realm Mobile Database, an on-device database alternative to Core Data. Realm has also developed an equally elegant and seamless server-side solution that syncs our data between our device and the cloud in real time.
Enumerations are a common design pattern in many programming languages. While you may be familiar with enumerations in C and Objective-C, Swift’s implementation of enumerations is significantly more powerful and flexible. In this quick tip, you’ll learn what’s special about enumerations in Swift, how to use them in your projects, and what makes them so powerful.
In the previous lesson of Swift From Scratch, we created a functional to-do application. The data model could use some love, though. In this final lesson, we’re going to refactor the data model by implementing a custom model class.
In the previous lesson, we added the ability to create to-do items. While this addition has made the application a bit more useful, it would also be convenient to add the ability to mark items as done and delete items. That’s what we’ll focus on in this lesson.
In the previous lesson, you created a simple Swift project in Xcode, a basic to-do application. In this installment of Swift From Scratch, we’re going to add the ability to create to-do items. Along the way, you learn about actions, delegation, and properties.
If you’ve read the previous lessons of this series, you should have a good grasp of the fundamentals of the Swift programming language by now. We talked about variables, constants, and functions, and in the previous lesson we covered the basics of object-oriented programming in Swift.
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.