SwiftUI
-
Custom Alert view in SwiftUI – (Xcode 12.1)
Presenting system alerts in SwiftUI is super easy. Just call the instance of Alert class and pass the respecting parameters, but system alerts are very basic and non-customizable default design. So it’s better to design and present your own custom alert as easily as we are presenting system alerts. If you want to read an […]
-
SwiftUI: How to Show Alert & ActionSheet in SwiftUI
Alert & ActionSheet in SwiftUI is a pop-up that shows in the center and bottom of the device which contains some title, message, and buttons. Buttons trigger some actions based on your needs. Alert in SwiftUI is same like UIAlertController in UIKit. In this tutorial, we will see how we can show Alert & ActionSheet […]
-
SwiftUI: Facebook Layout – Horizontal Scroll View
Facebook Layout is a little challenging layout cause it contains lots of complex UI elements. In this Tutorial, we are see going to see how we can create the Facebook layout in SwiftUI. In SwiftUI it is easy to separate the UI elements and combine them on the Main screen to the get desired results. […]
-
SwiftUI: Create Tabbed View in SwiftUI
In this iOS tutorial, we will talk about how we can implement Tabbed View or Tab View in SwiftUI. Tab View use to display a view when tab items are selected. Each tab item can contain Image and Text. Creating Tab View in SwiftUI is very easy as compared to the swift. In this tutorial, we will create 4 tabs with there respective […]
-
SwiftUI: How to use ZStack in SwiftUI
Using stacks in SwiftUI allows us to arrange views in a single view with some properties like HStack allow us to arrange views in the horizontal line. VStack allows us to arrange views in a vertical line. But sometimes we are required to put one view on top of another view like Text on Image at this time ZStack plays its role and […]
-
SwiftUI – Understanding @State Property Wrapper
In this tutorial, we will dive into the fundamental of @State property wrapper in SwiftUI. we will also learn what is @State and how we can use it.If you want to watch the video tutorial of this article instead, here you go: Requirments You need macOS Catalina and Xcode 11 or above in order to have SwiftUI work in […]