Thanks @DJHarter.
FYI to others - I required both _{service}._tcp
& _{service}._udp
in my Info.plist.
Post
Replies
Boosts
Views
Activity
@OOPer - Apologies, I simplified my code for posting here and must have removed too much. I've just tried the following code:
struct Test: View {
@State var toggle: Bool = false
var body: some View {
ZStack(alignment: .bottom) {
ScrollView(.vertical) {
VStack(alignment: .leading) {
VStack(alignment: .leading) {
Text("A Really long layout with lots of text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
}
VStack {
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
}
VStack {
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
}
VStack {
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
}
VStack {
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
Text("Text")
}
Toggle("Test toggle", isOn: $toggle)
Button(action: {
print("Tapped")
}, label: {
Text("Tap")
})
}
}
Rectangle()
.fill(LinearGradient(gradient: Gradient(colors: [Color.red, .clear]), startPoint: .bottom, endPoint: .top))
.frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: 150)
.allowsHitTesting(false)
}
}
}
When I run this in the preview window a scroll cannot be initiated in the scroll view when started on the rectangle with a gradient. Taps on the button behind appear to work however a toggle cannot be toggled?
Thanks for the workaround. Sadly not ideal as locks the NavBar into large display mode for me. 7 months on and still an issue.... :(