Notes reading the async/concurrency proposals to be introduced in Swift 5.5. Before you can play chess well, you must first learn the rules of chess.
Apple’s CoreData is a great choice for a data model on iOS and with SwiftUI. Under the hood it uses
SQLiteto handle lots of data that can’t fit into memory all at once. I have always wondered about using
SQLitedirectly. It would be a little messy because
SQLiteis a C library and it would force you to use the unsafe APIs that you would certainly want to wrap. It turns out that you can pretty easily use the ORM from the Vapor project in your SwiftUI project. I prepared this example by looking at test code.
Swift 5.4 is now released and includes language improvements and tooling improvements. Paul Hudson, as usual, has a great summary of what is new hosted at https://www.whatsnewinswift.com.
It’s easy to apply the Swift Argument Parser in the last post to a SwiftUI app. This capability can be helpful in testing by allowing you to bootstrap data into your app. In this post, you will take a minimal SwiftUI app and add argument parsing to it. Here is the app greeting that shows a greeting message to the user.
Command-line interfaces (CLIs) provide a robust, textual way to communicate with your programs. Swift, as a general-purpose computing platform, lets you build these kinds of tools efficiently and elegantly. In this post, you’ll have a look at the Swift package Argument Parser, which handles all the boilerplate of creating a full-featured, command-line interface.
subscribe via RSS