Questions tagged [navigationitem]
80 questions
2
votes
1 answer
I am not able to overwrite NavigationItemTitle into TabView in SwiftUI
I am a new in SwiftUI. I have a ContentView, in that I added NavigationView and from that NavigationView it redirect into another view which have a TabView.
//ContentView.swift
struct ContentView: View {
@State private var isValidLogin : Bool =…

Sapana Ranipa
- 889
- 7
- 20
2
votes
2 answers
Add custom shape ripple with selector on navigationview menu item
I want to add a ripple effect with rounded corners rectangle with a selector for navigation view item. But it keeps adding the gray rectangle ripple effect.
navigation view

Umer Maqsood
- 117
- 1
- 11
2
votes
1 answer
Top Bar in ViewController ios swift show the previous top bar
First from left.. This is home page. When i click reattempt button will open new viewcontroller which name level page (second from left)
Second from left. This is level page. It show top bar same like home page when run it.
Third from left. This is…

MAS. John
- 582
- 6
- 22
2
votes
0 answers
Change background colors of each Items in navigation Menu
Hello any one can please help me out , I want to change background color for each items in the menu ,
-

Mohtashim
- 359
- 1
- 3
- 15
2
votes
1 answer
EXC_BAD_ACCESS after upgrading to Xcode6 Beta3 Setting Navigation Title
(Xcode6 beta3, Swift, iOS8, iPhone)
Just upgraded from Xcode6 to beta3. Code that was working fine is now breaking.
override func viewDidLoad() {
super.viewDidLoad()
self.navigationController.navigationBarHidden = false
…

kmiklas
- 13,085
- 22
- 67
- 103
1
vote
1 answer
make custom navigationbar titleview
I have a custom view for my navigation bar title, which I am setting like this:
UIImageView *titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"CustomTitleView.png"]];
self.navigationItem.titleView = titleView;
This works as…

Matt Green
- 185
- 1
- 11
1
vote
1 answer
PageViewController overlapping NavigationItem and Toolbar
I'm currently developing an app that uses Navigation Controller for main app flow. The app includes a scene (from Storyboard) where I wish to use a PageViewController.
It's all going well, except that I'd LIKE to make the PAGE CURL EFFECT of the…

Robert Morton
- 41
- 3
1
vote
0 answers
BackBarButton text gets truncated after unhiding
When hiding and later unhiding the backButton (not a regular left/rightBarButtonItem) in the NavigationBar via navigationItem.hidesBackButton = true/false the text gets truncated in the middle.
Set the Text Size (dynamic font size) of your phone to…

benrudhart
- 1,406
- 2
- 13
- 25
1
vote
1 answer
Adding Back icon and "Back" text within a UINavigationItem button in SwiftUI
I have a button that i want it have the < back icon and also back text to it . This is what i did:
Text("\(Image(systemName: "chevron.left"))Back")
I am getting this error:
Instance method 'appendInterpolation' requires that 'Image' conform to…

Abd Dash
- 13
- 2
1
vote
2 answers
Xcode 4 Navigation item prompt property misbehaving?
When designing in Interface Builder and you add text to a prompt property, it creates an additional top title. This comes with the extra thickness needed to allow for 2 tiles in the navigation bar.
Once I remove the text, let's say to reset back to…

Jim
- 21
- 4
1
vote
0 answers
How can you create a navigationItem.titleView that is greater than 40 pixels in height under iOS13.3?
Using Swift 5.1.3, iOS13.3, XCode11.3,
I try to create a custom navigationBar Title and use the navigationItem.titleView to do so.
Everything works fine if the custom titleView is of small size (around 40-45 pixels). The reason is most likely…

iKK
- 6,394
- 10
- 58
- 131
1
vote
1 answer
How to set title of navigation item after open another view controller using with present modally - Swift
I have two view controllers in my application. Root view controller has some components and one of them is a button. That button provides to open another view controller using with present function. Second view controller(SelectTimeViewController)…

Nilay Keven
- 13
- 4
1
vote
3 answers
searchBar not centered in navigationItem
Current status
I am doing it programmatically. I also tried to set it into TitleView, but it's not working.
Code below:
//searchBar
let searchController = UISearchController(searchResultsController: nil)
…

dan
- 77
- 1
- 10
1
vote
4 answers
Trouble hiding backbarbutton text
For some reason this code won't hide back button text.
self.navigationItem.backBarButtonItem = UIBarButtonItem(title: " ", style: .Plain, target: nil, action: nil)}
Text remains "Back".
On the other hand…

Teddy
- 1,056
- 1
- 14
- 24
1
vote
1 answer
Swift 3 - Reload NavigationController Button Image
I have a navigation controller view, with an embedded collectionview controller. I have a right bar button added programmatically, with an image added to it as follows:
self.navigationItem.rightBarButtonItem = UIBarButtonItem(image:…

Jeeves
- 424
- 1
- 7
- 25