In the previous articles, we took a look at how to arrange view and create buttons.
That helps us to build the user interface for our mobile apps.
That won’t be a reach interface, but that just the beginning.
The mobile apps don’t only operate with static data.
They are also getting data from a user and provide some data back.
Now, a mobile app should be able to hold data somewhere and be able to amend it.
In this article, we are going to learn about a state.
Until now, we were learning about SwiftUI views that are static and don’t require actions from users.
Today we start learning how we can make apps more interactive.
So we are going to start with the buttons.
In the previous article, we took a look at stacks and learned how to arrange SwiftUI views.
We’ve learned that
VStack renders subviews vertically, and
HStack - horizontally.
What we also could notice that all subviews inside the stack are centered.
In this article, we are going to learn how to to change the alignment of subviews.
A user interface of a mobile application is built from different small parts.
All together, they form a single piece, with which users can interact.
To build such an interface using SwiftUI, we need to arrange smaller views in one way or another.
In this article, we are going to learn how to achieve that.
In Summer 2019, at WWDC, Apple announced SwiftUI. The framework that changes the way we can build interfaces for iOS applications.
In this article, we are going to figure out what is SwiftUI and what it is not.