How To Scroll To A Position Programmatically In UIScrollView

In general we use UIScrollView, UITableView or UICollectionView & sometimes we have to scroll programmatically to Top or bottom, so we can achieve it by using setContentOffset where we set where exactly to scroll Below are 4 helper methods which help in scrolling the Scroll view UIScrollView scroll to bottom UIScrollView scroll to Top UIScrollView […]

How To Scroll To A Position Programmatically In UIScrollView Read More »

How to Change NavigationView Colour in SwiftUI

iOS 16 From iOS 16 we can use .toolbarBackground for the NavigationBar / NavigationView Color. Don’t forget to add .toolbarBackground(.visible, for: .navigationBar). You can also set title color of Navigation Item by using ToolbarItem iOS 13 Solution By setting up the UINavigationBarAppearance we can change the Navigation bar Color. But remember it will affect globally.

How to Change NavigationView Colour in SwiftUI Read More »

How to Create ProgressBar in swiftUI ?

In this article we will discuss about creating Gauge or Progress bar in iOS Application by using  Gauge(1. Making Horizontal progressBar2. Creating Circular progressBar 1. Making Horizontal progressBar We will create a simple progress bar where currentProgress shows fraction completion of the bar For adding min max values use currentValueLabel minimumValueLabel maximumValueLabel 2. Creating Circular

How to Create ProgressBar in swiftUI ? Read More »

How to create Navigation in SwiftUI ?

iOS 16 onwards User NavigationStack for top Header(NavView) & use NavigationLink for jump to next view – Additionally you can use .navigationBarTitleDisplayMode(.inline) for lesser height NavigationBar Use Of .navigationDestination To jump with specific value use navigationDestination let me explain you in simple way by giving Genuine example –Create a Hashable model in Swift – where

How to create Navigation in SwiftUI ? Read More »