Skip to main content

All Questions

0 votes
0 answers
92 views

Change the selected item highlighted background color inside the ListView

How do I change the neon selected background color to something like red? I tried .tint and .listRowBackground but they aren't working. The only working solution is to change the accent color in ...
Donat Kabashi's user avatar
1 vote
1 answer
39 views

SwiftUI MapKit breaks the custom navigation bar

When I use non-deprecated Map() functions, it breaks the custom navigation bar and displays the system's default navigation bar instead. I haven’t been able to find a solution to this issue anywhere. ...
Derya Karakus's user avatar
0 votes
2 answers
102 views

SwiftUI's navigationBarItems leading and trailing buttons not showing in FamilyActivityPicker

I have the following View in SwiftUI to display FamilyActivityPicker: import SwiftUI import FamilyControls struct FamilyActivityPickerView: View { @State private var selectionToDiscourage = ...
sudoExclamationExclamation's user avatar
1 vote
0 answers
52 views

strange line when putting scrollview inside of NavigationView- SwiftUI MacOS

If i have the following code in a SwiftUI view: NavigationView { NavigationLink(destination: ScrollView{}, label: { Text("Thing") }) } It creates this ...
David Reese's user avatar
0 votes
0 answers
63 views

Why does NavigationView navigates back to root if item in master was selected?

The master of the NavigationView navigates back to root, if a item was selected. But only if previously a item in the root list was selected. Tested on iPadOS. Steps to reproduce: Select a item in ...
Manuel Berghaus's user avatar
1 vote
0 answers
62 views

How to create a Navigation Bar with a title, "Done" button and Segmented Picker in SwiftUI?

I'm trying to replicate a UI similar to the one in the Safari app on iOS (as shown in the attached image) using SwiftUI. The navigation bar includes: A dynamic title based on the selected segmented ...
HD Mavani's user avatar
0 votes
1 answer
39 views

SwiftUI No ContextMenu on Recursive List

I am trying to port a program written in Java to SwiftUI. The basic structure of the UI is a navigation tree on the left side of the main view. The user might select one item and the several details ...
hjbflyer's user avatar
0 votes
0 answers
36 views

Keyboard toolbar doesn't show up on second tab

In my iOS (18.1) application I need fields with non standard behavior and formatting to enter decimal numbers. To achieve this, I decided to create a custom text field that utilizes the numeric keypad ...
Fab's user avatar
  • 1,594
0 votes
1 answer
134 views

SwiftUI NavigationLink goes back immediately on first activation after app launch

I am experiencing an issue with programmatic navigation in my SwiftUI app. I use a NavigationLink with an isActive binding to navigate to a specific view (EditUser). The first time I toggle the ...
Iñigo Bereciartua's user avatar
1 vote
1 answer
121 views

SwiftUI .refreshable default progressView not shown if parentView has .navigationBarTitleDisplayMode(.large)

I have a strange problem. I have a view with a list and I add the .refreshable to it to load data. The data was loaded, but the default progressView of the pull-to-refresh was not appearing. I load ...
sebasira's user avatar
  • 1,844
0 votes
1 answer
55 views

Push/pop animation of NavigationView not work when nested in TabView.tabViewStyle(.page(indexDisplayMode: .never))

I have this sample code: @main struct SwiftUITestApp: App { var body: some Scene { WindowGroup { VStack { TabView { HomeView() ...
duckSern1108's user avatar
  • 1,161
2 votes
1 answer
70 views

Difference Between navigationBarTitle and toolbarTitle in SwiftUI

What is the difference between ①navigationBarTitleDisplayMode and ②toolbarTitleDisplayMode when using them with SwiftUI’s navigationTitle? It appears that .inlineLarge only works with the latter (②), ...
Kngw Kngw's user avatar
0 votes
1 answer
199 views

How to change language in navigation title

I have a bilingual app. I’ve implemented Localizable.strings, and generally, when I switch the language, it changes everywhere except for the navigation bar. When I navigate to a different view that ...
Filip Kaźmierczak's user avatar
0 votes
2 answers
84 views

SwiftUI change list value with enum associated values and arrays on different view using Navigation link

I have been unable to solve the problem for several days. There is a data type that includes an array with an enum. I want to зфыы the data to another view for editing. But can't understand how to ...
Ruzlev's user avatar
  • 3
0 votes
0 answers
16 views

Make navigations to the next View after pushing ATT message

enter image description here Is it possible to make it automatic to go to the next View after answering App Tracking Transparency Dialog allert? Black View with App Tracking Transparency Dialog on it ...
Антон Разгуляев's user avatar

15 30 50 per page
1
2 3 4 5
41