I am trying to add a space between the toolbar on top and the first element. I am not able to find any docs or links to do it.
Current code:
import SwiftUI
struct AnotherView: View {
var body: some View {
let words = ["Nakul", "Chawla"]
VStack {
VStack{
Text("lets see if this works")
}
.navigationTitle("Hawaii")
.toolbar {
Text("something else")
}
.toolbarBackground(.yellow, for: .navigationBar)
.toolbarBackground(.visible, for: .navigationBar)
.navigationBarTitleDisplayMode(.inline)
VStack {
Spacer()
MiniView()
Spacer()
Spacer()
Spacer()
List(words, id: \.self) { word in
Text(word)
}
}
}
}
}
How can I separate the view from the toolbar in yellow and the other elements of my view.
Post
Replies
Boosts
Views
Activity
I am getting the below messages in my app.
I am getting multiple error messages:
fsbxpc_obtainSandboxRegistrationForPath signalled err=-17507 (kFigSandboxError_ExtensionDenied) (Could not obtain sandbox extension) at /Library/Caches/com.apple.xbs/Sources/EmbeddedCoreMediaFramework/EmbeddedCoreMedia-2729.5.1.3/Prototypes/Player/ClientServer/FigSandboxSupport.c:454
I am also getting the below error:
<CATransformLayer: 0x2836f6ea0> - changing property masksToBounds in transform-only layer, will have no effect
I suspect these are being produced from the AVPlayer VideoView.
How do I resolve this?