Swift Blogs Skip to main content

Posts

Showing posts with the label Navigation Bar

Custom Navigation Bar: Swift 4.2

Overview Hello iOS Developer, we all want our custom module which helps us dynamically and in easy of implementing with our purpose. Here image, show what we going to learn in this tutorial. Custom Navigation Bar: Swift 4.2 As you can see over here there are two labels and one image view with the image of the drop-down arrow. Here two labels are stack in the vertical stack view and image view and vertical stack view will be stack in horizontal stack view. At last, we are going to add a target to handle tap event on title view. I'm assuming that you are familiar with project setup. Open Storyboard, an embed navigation controller to view controller. Create a new swift named it " NavigationTitleViewDropdown ". Now here we are going to create a class with the same name as a swift file, a superclass will be UIButton because we required tap event handling. Now we are going to create some variables. First one is label title a compute variable here we are going to ch...