Posts from Swift

Create toggle switch in SwiftUI

By Samim

In this tutorial, we will learn how to create toggle switch in SwiftUI. Basically, toggle lets a user switch between true and false states. It is commonly used to represent options.... Read More

Text() on button click in SwiftUI

By Saruque Ahamed Mollick

In this tutorial, I will show you how to show Text on button click in SwiftUI with a simple code. I am making this tutorial because we can not directly write Text()in Button functi.... Read More

Get the length of a string in Swift

By Samim

In this tutorial, I will show you how you can get the length of a string in Swift. A string in Swift is a collection of characters surrounded by double quotation marks. We have sev.... Read More

Create a custom view with content in SwiftUI

By shagrafnasheet

In this tutorial, we will learn how we can make custom views in SwiftUI. Custom Views help us divide our complex screen design into tiny and simple layouts that we can edit and cha.... Read More

Create Custom alert or popup view in SwiftUI

By shagrafnasheet

In this SwiftUI tutorial, we’ll learn how to make a custom alert view or any popup view in SwiftUI. We’ll be using all the components we are already familiar with to cr.... Read More

Put an image in NavigationView in SwiftUI

By shagrafnasheet

In this tutorial, we’ll learn how to put an image in the Navigation view of SwiftUI. We can give an image to the navigation view in SwiftUI using navigationBarItems. Navigati.... Read More

Change the color of back button on NavigationView

By shagrafnasheet

In this tutorial, we’ll learn how to change the color of the back button on NavigationView in SwiftUI. It’s super easy all we have to do is use one SwiftUI modifier, th.... Read More

Create custom slider in SwiftUI

By shagrafnasheet

In this tutorial, We’ll learn to create a custom slider in SwiftUI. We create custom sliders because the default slider of SwiftUI doesn’t give us many options for modi.... Read More