0

Guys I want to make this screen for my App. I don't know how to make this scrollview into navigation using programmatically. please I want to make this scrollview programmatically similar design. enter image description here

1 Answers1

0

This is a collectionview you can acheive this by adding a collectionview in NavigationBar

weak var collectionView: UICollectionView?
override func viewDidLoad() {
    super.viewDidLoad()
    let navigationitem = UINavigationItem(title: "")    //creates a new item with no title
    navigationitem.titleView = collectionView //your collectionview here to display as a view instead of the title that is usually there
    self.navigationController?.navigationBar.items = [navigationitem] //adds the navigation item to the navigationbar
}

For more assistance check this answer

Zain Anjum
  • 538
  • 7
  • 13