Skip to main content

All Questions

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
1 answer
435 views

NavigationBar Title Did Not Inline When Scrolling

I am very new to Swift and SwiftUI. I am trying to create the Contacts View of Apple's Phone app. I am using Xcode 14.3.1. My aim is to make navigation title get inline mode when scrolling. But the ...
Hilal's user avatar
  • 1
0 votes
1 answer
175 views

SwiftUI UISearchController replacement: search field, results and some scrollable content fail to coexist in a meaningful manner

Starting with this var body: some View { ScrollView { VStack(spacing: 0.0) { Some views here } } .edgesIgnoringSafeArea(.top) } How would I add ...
Anton Tropashko's user avatar
0 votes
1 answer
506 views

Moving Horizontal ScrollView up top SwiftUI

I am trying to move the images in Horizontal ScrollView up top. They are currently at the bottom. I have tried adding NavigationView, .padding(), Spacer(), Adding a ZStack as a parent to HStack, and ...
Christina Mulenga's user avatar
3 votes
1 answer
4k views

Navigationbar title is inline on pushed view, but was set to large

I want a large title in the navigationbar on a pushed view in SwiftUI and an inline title on the parent view. When the parent navigation bar display mode is not set, it works: Working without display ...
thekakami's user avatar
10 votes
3 answers
6k views

Scroll View Items Come Over the Navigation Bar in SwiftUI

I made a custom nav bar. and added a scroll view below it. The problem I am getting is when I scroll down, the data inside scroll view comes over the navigation bar. Here is the screenshot: My code ...
Taimoor Arif's user avatar
  • 1,220