Posts from Swift

Custom back button for navigation bar in SwiftUI

By Samim

In this tutorial, we will see how to create a custom back button and implement a custom action for the navigation bar in SwiftUI. When we are using an iPhone app, there is a little.... Read More

Make equal height subviews in HStack in SwiftUI

By Samim

In this tutorial, we will see how to make equal height subviews in HStack in SwiftUI. When we use an HStack in SwiftUI to align different things side by side, normally it will adju.... Read More

Make specific parts of text bold in SwiftUI

By Samim

In this tutorial, we will see how to make a specific part of text bold in SwiftUI. Suppose, we have the text “Welcome to CodeSpeedy” and we want a specific word of the .... Read More

SwiftUI Button: Making Background Tappable

By Samim

In this tutorial, We will see how to make the background of a SwiftUI button tappable. If you have faced issues with SwiftUI buttons where the background doesn’t respond to t.... Read More

Add a TextField to Alert in SwiftUI

By Samim

In this tutorial, we will see how to add a TextField to an Alert in SwiftUI. In iOS 16 and above versions, we can now add one or more TextField or SecureField components within an .... Read More

Remove NavigationBar Back Button Title in SwiftUI

By Samim

In this tutorial, we will see how to remove the Navigation Bar back button in SwiftUI. The back button in SwiftUI navigation bars displays the title of the previous view. This can .... Read More

Change the navigation bar title color in SwiftUI

By Samim

In this tutorial, we will see how to change the navigation bar title color in SwiftUI. We can customize the appearance of a navigation bar, including the navigation bar title color.... Read More

Customize sheet in SwiftUI

By Samim

In this tutorial, we will see how we can customize a sheet in SwiftUI. A sheet is a common UI element for displaying secondary views or modals. Sheets have a default appearance, bu.... Read More