SwiftUI -- MVVM state management in a simple way
Posted on May 17, 2022, Level intermediate Resource Length medium
SwiftUI is Apple's new declarative framework for building user interfaces for all Apple devices. This framework can be broken down into two essential components: views and state. By Amisha I.
Swift actors: How do they work, and what kinds of problems do they solve?
Posted on May 12, 2022, Level intermediate Resource Length medium
Since the very first version of Swift, we've been able to define our various types as either classes, structs, or enums. But now, with the launch of Swift 5.5 and its built-in concurrency system, a new type declaration keyword has been added to the mix -- actor. By John Sundell.
Protocol-oriented approach to associated types and self requirements in Swift
Posted on April 16, 2022, Level intermediate Resource Length long
Associated types and Self requirements are important features of Swift and are used extensively in the standard library. But they can be tricky to use and continue to frustrate many Swift programmers. By Khawer Khaliq.
Creating ML model with Swift & CreateML
Posted on December 2, 2021, Level intermediate Resource Length medium
We know machine learning is so popular in mobile and desktop applications. Therefore we need basic ML skills to follow this trend. By Oguz Kayra.
How to handle errors in Swift task groups
Posted on November 14, 2021, Level intermediate Resource Length medium
There is one important topic related to task groups that author will cover, which is "error handling". By Lee Kah Seng.
What is a Computed Property in Swift?
Posted on January 16, 2021, Level beginner Resource Length short
Computed properties are part of a family of property types in Swift. Stored properties are the most common which save and return a stored value whereas computed ones are a bit different. By Antoine van der Lee.
Getting started with SwiftIO
Posted on November 20, 2020, Level beginner Resource Length medium
SwiftIO is an electronic circuit board that runs Swift on the bare metal. It can control sensors, displays, lights, motors and more. By Tibor Bödecs.
Working with an internet connection on iOS with Swift: Best practices
Posted on August 16, 2020, Level intermediate Resource Length medium
Networking is an integral part of most iOS applications. A common network-related task is Internet connectivity detection. Written by Vadim Bulavin.
Beyond the Sandbox: Signing and distributing macOS apps outside of the Mac App Store
Posted on August 11, 2020, Level intermediate Resource Length long
Since the advent of OS X Mojave and especially Catalina and the requirement for app notarization, some of us old-time macOS developers are concerned that Apple will pull the plug on the apps that we distribute ourselves. Many of you have downloaded and installed macOS software directly from websites, i.e., not from the Mac App Store. Have you ever really considered it? By Andrew Jaffee.
Getting started with the Combine framework in Swift
Posted on September 8, 2019, Level intermediate Resource Length medium
Combine is a new framework by Apple introduced at WWDC 2019. The framework provides a declarative Swift API for processing values over time. Written by Antoine Van Der Lee.
Tags swiftlang programming tdd
Posted on June 28, 2019, Level intermediate Resource Length long
The comparison done by Alexey Karasev focusing on Monads in different programming languages. It gives a brief explanation of monads and shows how to implement the most useful Monads in five different programming languages.
Using unit tests to identify and avoid memory leaks in Swift
Posted on June 20, 2018, Level intermediate Resource Length medium
John Sundell blog post about memory leaks in Swiflang. In it he discusses managing memory and avoiding leaks and how it is a crucial part of building any kind of program. According to author Swift makes this relatively easy in most situations -- thanks to Automatic Reference Counting (or ARC for short).
Tags programming swiftlang tdd