Post

Replies

Boosts

Views

Activity

[SwiftUI] Gray view with simple navigation
Hi guys, I'm getting a weird navigation side effect (a half screen grey view) when moving from one view to another. Here's the code: @State var text: String = "" var body: some View { NavigationView { VStack { TextField("TextField", text: $text) NavigationLink { Text("Yellow view") .frame(maxWidth: .infinity, maxHeight: .infinity) .background(Color.yellow) Spacer() } label: { Text("Yellow view") } Spacer() } } Text("Bottom View") .frame(maxWidth: .infinity, maxHeight: 60) .background(Color.red) } } And here's what I'm seeing: Is there any way to fix it, without moving the red view inside the NavigationView hierarchy ?
7
0
2.2k
Oct ’21
[SwiftUI] Gray view with simple navigation
Hi guys, I'm getting a weird navigation side effect (a half screen grey view) when moving from one view to another. Here's the code: @State var text: String = "" var body: some View { NavigationView { VStack { TextField("TextField", text: $text) NavigationLink { Text("Yellow view") .frame(maxWidth: .infinity, maxHeight: .infinity) .background(Color.yellow) Spacer() } label: { Text("Yellow view") } Spacer() } } Text("Bottom View") .frame(maxWidth: .infinity, maxHeight: 60) .background(Color.red) } } And here's what I'm seeing: Is there any way to fix it, without moving the red view inside the NavigationView hierarchy ?
Replies
7
Boosts
0
Views
2.2k
Activity
Oct ’21
Provide input to SPM Plugin from Host App
Hi, Is there a way to provide input from a spm package plug-in, from the host app that integrates it ? I see there is no way to access the host target (although the plugin has access to the package target). Is that possible with the current status quo ?
Replies
0
Boosts
0
Views
622
Activity
Mar ’23