Form view is used in SwiftUI to present a collection of user input controls, such as
text fields and toggle buttons to gather information from the user. Forms are
frequently used in settings screens and data entry screens. This article walks
through displaying text, toggle buttons, pickers and steppers in a SwiftUI …
Modal views are views that are presented over the main application and prevent
interaction with the views behind until the modal view is dismissed. There are
different types of modal views available in SwiftUI, each designed for a particular
function. This article shows the use of Sheets, Alerts, Action Sheets and …
Pie charts are widely used in the business world and the mass media. There is some
criticism of the use of pie charts as it can be difficult to compare sector sizes,
however they can be useful when the number of sectors is small. In this article we
walk through how to create a pie chart in SwiftUI using path.addArc …
Most mobile apps contain more than one screen, so navigation from one screen to
another is necessary. A typical implementation is to have a list of items where
tapping on a single item will navigate to a detailed page for that item. SwiftUI
framework provides NavigationView and NavigationLink for this purpose.
A list is used in SwiftUI to present rows of data in a single column. This was
previously done using UITableView in UIKit. Use of the list container in SwiftUI
simplifies the amount of code to create a simple list of items as well as allowing
custom layout of the rows in the list.
Circular rings are used frequently to show progress on a particular task or project.
There has been a lot more awareness and discussion on closing activity rings since
the introduction of the Apple watch. In this article we will create a circular
progress indicator with the percentage complete displayed in the center.
Buttons are used in SwiftUI to provide a mechanism for a user to initiate an
interaction with an app. This article shows how to customise buttons in SwiftUI.
SwiftUI provides a default style for buttons, but this can be modified in many ways
and it can be helpful to provide a common style for buttons in your app.
Animations can be used to give an App character and help bring the App to life. They
can be used to explain how an app works, enhance navigation between screens or simply
direct a user's attention. In this article we show how to animate the change of a
shape from a triangle to a square or a circle.
Images can be used in a variety of ways to create engaging and entertaining iOS Apps.
Images can be used as backgrounds, icons, buttons and to improve content. This article
shows how to add an image in Xcode and goes through some of the display modifiers
to use to control the image display.
SwiftUI uses a declarative approach to creating the User Interface. This means the
code is written to state what the user interface should look like. Stacks provide a
mechanism to define the layout arrangement of multiple views in a SwiftUI app.