Building an expandable list with nested items is quite a complex and error prone task to implement when using
UIKit. Luckily with SwiftUI 2.0, Apple introduced
DisclosureGroup. With the views in our arsenal, we can build a hierarchical expandable and collapsible list with minimal lines of code using declarative syntax and reactive state management.
We’re going to explore about
DisclosureGroup, and how we can use them in practice to build
List that represent hierarchical data in the UI by building three different kind of screens:
Listto render hierarchical data.
OutlineGroupin List to handle multiple kind of views. …
Last month, The Swift Core Team & Swift Server Work Group had announced the availability of Swift AWS Lambda Runtime as well as support of Swift on Amazon Linux 2 OS. With both of this announcement, we finally have some official support to run Swift on AWS Lambda environment.
Swift has many advantages such as low memory footprint, high performance, and quick start time. The Swift AWS Lambda runtime also uses
SwiftNIO to provide high performance non blocking networking engine for us to run asynchronous event driven code.
The runtime itself provides built-in support for many Lambda supported events such as HTTP request event from API Gateway, S3 object storage event, Simple Notification Service, and Simple Queue Service. …
SwiftUI enables developers to use unified tools and API for building full native applications across Apple platforms. We can target specific platforms and build the UI component without having expertise for each target specific framework such as
UIKit (iOS & tvOS),
AppKit (macOS), and
WatchKit (watchOS). As a developer, we can build apps much faster with declarative syntax, safer with reactive binding and state management between UI and model. At last, we don't have to do context switching when building across platforms.
In this tutorial, we will build a native Image Filter macOS App with the following features: