timsneath
Joined 15 years ago
Joined 15 years ago
Here's a more comprehensive list of different platform examples: https://github.com/swiftlang/swift-embedded-examples
The container CLI tool wraps the underlying Containerization framework, which in turn vends packages for things like EXT4 file system support -- all written in Swift. Here's one example as a jumping off point. https://github.com/apple/containerization/blob/main/Sources/...
You use this construct for unwrapping nullable fields, for example something like this:
guard let httpResult else { return }
Note that you don't need to assign the value to itself in modern Swift. This line takes an optional (httpResult?) and returns early if null. If not, you can use it with strong guarantees that it's not nullable, so no need for ? or ! to unwrap it later in the scope.
https://www.swift.org/documentation/articles/swift-sdk-for-a...
In former lives I worked on Flutter (Google) and Windows (Microsoft).