Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
0 votes
3 answers
2k views

I'm trying to create a Next button (as a right chevron) in the toolbar that looks identical to the iOS 26 back button (with the left chevron) in the new Liquid Glass style. But all my solutions ...
Andy's user avatar
  • 125
2 votes
1 answer
67 views

I have implemented a toolbar with the following code: import SwiftUI struct ContentView: View { @State var selectedTab = "Node" @State var searchText = "" ...
rackrd's user avatar
  • 477
0 votes
1 answer
62 views

I'm trying to control the height of an accessoryBar of a toolbar to have my buttons fully shown. I use ToolbarItemGroup(placement: .accessoryBar(id: "myAccessoryBar")), which places my ...
soundflix's user avatar
  • 3,133
1 vote
1 answer
933 views

I have two views with .searchable modifier and different placements. In both cases the search bar takes a humongous space in the toolbar, thing that doesn't happen in other apps (Apple native ones, ...
MarconiGRF's user avatar
2 votes
2 answers
1k views

I can't wrap my head around DefaultToolbarItem in SwiftUI on iOS 26 Beta 1. I use the following code and cannot see it. My code is below the image. Has anybody gotten it to work? Thanks! The code ...
user7289922's user avatar
0 votes
0 answers
28 views

In the below List I am able to see the keyboard toolbar for TextField but when I move to Search text field it disappears. Is the toolbar not supposed to be shown by SwiftUI or there is something I am ...
NNikN's user avatar
  • 3,858
1 vote
1 answer
120 views

Most SwiftUI modifiers modify the views beneath them in the hierarchy, but some modifiers modify views above them in the hierarchy. In my example below .navigationTitle, .toolbar, and ....
pinglock's user avatar
  • 1,351
2 votes
3 answers
674 views

NOTE: This question pertains to Toolbar on macOS, not iOS. Context A common app idiom is a "status area" in the toolbar of an NSWindow. For example, the status box in Xcode or the address ...
Bryan's user avatar
  • 6,027
1 vote
0 answers
120 views

Well Im just creating a personal project and then I face this bug. My navigation looks like this, if you compile the code and then try to navigate while you are not searching the .toolbar(.hidden) is ...
DiegoMod1's user avatar
2 votes
1 answer
165 views

I am hosting a SwiftUI View which contains a TextField and Toolbar to be displayed above the keyboard inside the Detail View of UIKit SplitViewController. When the textfield is pressed, the keyboard ...
user2793959's user avatar
0 votes
0 answers
151 views

I am looking for a way to customize the display timing of the navigation bar’s title in SwiftUI based on the content. Specifically, I would like to control when the title appears or disappears as the ...
Kngw Kngw's user avatar
  • 123
1 vote
1 answer
154 views

In SwiftUI I have a simple custom toolbar with a Text: import SwiftUI struct ContentView: View { var body: some View { NavigationStack { VStack { Text("...
Xavi Gil's user avatar
  • 11.6k
2 votes
1 answer
132 views

When using a custom .toolbar within a NavigationStack, the contents of the toolbar are getting clipped on navigation-pop. The code below first renders the view as expected (without any clipping). But ...
olx's user avatar
  • 180
2 votes
1 answer
302 views

I use in my Swift UI application for iOS NavigationViews (as .stack). Also I use nested NavigationView inside NavigationView and everything looked as I needed. But I decied to fefuse to use deprecated ...
Serhii R's user avatar
0 votes
1 answer
416 views

Please bear with me on this question as I am still learning iOS development using Swift. I currently have an app where the ContentView is a MapView with a clear toolbar at the top. The toolbar has a ...
dnahabedian's user avatar
-1 votes
1 answer
132 views

How can I achieve an effect similar to a rounded rectangle in the swiftui toolbar in order to put some basic buttons there? I have seen the effect in Xcode and other programs that have probably been ...
Karl Ehrlich's user avatar
0 votes
1 answer
243 views

I have some issues with child views inside TabView. This is my parent view: var body: some View { NavigationStack { VStack(alignment: .leading) { TabView { ...
fedjedmedjed's user avatar
0 votes
1 answer
475 views

I use ToolbarItem(placement: .keyboard) to provide a button over the keyboard. However, it cannot achieve the full screen of the iPhone in landscape orientation. As shown in the screenshot below, it ...
Kjuly's user avatar
  • 35.3k
0 votes
1 answer
126 views

When I initially run the application, I have the add button present on the first tab, on the second tab, the add button shouldnt be visible but when I tab back to the first tab, the button is gone. ...
macspeed's user avatar
  • 137
0 votes
1 answer
493 views

I'm using a NavigationStack for an app view with three ToolbarItems. The last one is supposed to be a straight forward options menu: NavigationStack { // CONTENT .toolbar { ToolbarItem(...
ScoobyDooku's user avatar
0 votes
1 answer
114 views

I want to keep animated swiping (.page) and toolbar transparency together. Here is my code with toolbar transparency: struct TestView: View { @State private var tabSelection = 1 var body:...
Sergei Kirasirov's user avatar
0 votes
1 answer
850 views

I have a simple List inside a navigation stack with a toolbar. The toolbar contains an edit button and a "Finished" button to dismiss the view. How do I hide the "Finished" ...
Martin's user avatar
  • 1,662
5 votes
1 answer
692 views

This is what my simplified SwiftUI view looks like: struct NotificationsView: View { var body: some View { if #available(iOS 16.0, *) { notificationsView.toolbarRole(....
nince's user avatar
  • 51
0 votes
0 answers
133 views

I am trying to add space between the yellow toolbar and the MiniView element below. When I add space, it looks like it extends the toolbar. The space needs to be similar to the space between the ...
thenakulchawla's user avatar
0 votes
3 answers
785 views

What: add space between the list inside a Navigation Stack and the toolbar on top. Current code is like this struct ContentView: View { let words = ["Hello", "World", "...
thenakulchawla's user avatar
0 votes
2 answers
481 views

The following sample code illustrates an issue I am having with my SwiftUI app: import SwiftUI struct ContentView: View { var body: some View { NavigationView { Text("...
protasm's user avatar
  • 1,297
0 votes
1 answer
855 views

I want to animate the extending search bar. When I press the search button, I want to extend the search bar to left, and when I close the search text field, to collapse to right. ...
dhaval123's user avatar
0 votes
1 answer
68 views

I want to display a picker with several options to choose one of them. I could do it but the problem is that the menu shows collapsed. How can I show the menu display uncollapsed? Example Code: ...
Ariel Antonio Fundora's user avatar
2 votes
1 answer
290 views

I'm trying to change the color of my toolbar. I found the code .toolbarBackground(Color.blue, for: .navigationBar) and tried to place it in different position in my code but without any success. ...
Cruder's user avatar
  • 39
1 vote
1 answer
665 views

I want to have a sticky toolbar that has multiple different filtering options above a List in SwiftUI. Is there a way to just place a full custom view inside the .toolbar property of a List? With the ...
yambo's user avatar
  • 1,906
4 votes
2 answers
2k views

I'm building a SwiftUI to-do app. You tap an Add button that pulls up a partial-height sheet where you can enter and save a new to-do. The Add sheet's input (TextField) should be focused when the ...
Dave Feldman's user avatar
3 votes
1 answer
913 views

In the files App after you pressed the Select button the tabBar switch to the toolbar. How can I do this with swiftUI?(Switch between tabBar and toolbar) struct tabBar: View { var body: some ...
fdvfarzin's user avatar
  • 1,305
8 votes
0 answers
7k views

Is there a way to increase the height of the SwiftUI toolbar? My toolbar items are quite squished together and if I add any padding then they are cut off from the view. What I have done is created an ...
Dylan Keen's user avatar
0 votes
0 answers
244 views

Need to create a new toolbar navigation link on each new view going to the next item in the array and back button going to previous item. Currently, it doesn't do that and keeps creating a new toolbar ...
Patari's user avatar
  • 1
1 vote
2 answers
2k views

In my app, I have a View which is set to either a login View or a home TabView, depending on if the user is logged in. From the TabView, the user can go to a profile popover and logout. I want to ...
Michael Hsieh's user avatar
0 votes
1 answer
348 views

I have this TabView: ZStack(alignment: Alignment(horizontal: .center, vertical: .bottom)){ TabView(selection: $mainViewProperties.currentView) { ... ...
Sebastián García Burgos's user avatar
6 votes
1 answer
1k views

I have a view with a toolbar at the bottom that I am navigating to using a NavigationLink. But when the view appears, the toolbar is shown a little too low. After half a second or so it then suddenly ...
Robin Bork's user avatar
26 votes
10 answers
16k views

Background I have two TextFields, one of which has a keyboard type of .decimalPad. Given that there is no 'Done' button when using a decimal pad keyboard to close it, rather like the return key of the ...
Jimbo's user avatar
  • 26.7k
0 votes
2 answers
4k views

I am experimenting with SwiftUI ToolbarItem in various positions in my view, such as in bottomBar and navigation. I am wondering if it is possible to center the ToolBarItem vertically in the view, as ...
JS_is_awesome18's user avatar
2 votes
0 answers
658 views

I have a chat app and want to add a toolbar to the keyboard similar to an inputAccessoryView previously prior to SwiftUI. I know iOS15 now has the option to add a toolbar using the following (from ...
alionthego's user avatar