The importance of code readability is often underestimated, especially when programming in an environment which emphasizes user interface and user experience. While it’s true that it is extremely important to make a great app, it’s equally important to be able to change it in the future. With unreadable code, it can be much harder to solve bugs, with countless hours of trying to find the correct lines of code and to understand how it works.
Machine learning has undoubtedly been one of the hottest topics over the past year, with companies of all kinds trying to make their products more intelligent to improve user experiences and differentiate their offerings.
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.