I noticed there is always a glitchy animation the first time you run a context menu with a preview on SwiftUI. Subsequent triggers to the method work just fine, but the first one is really glitchy. Anybody else experiencing this? Tested on iOS 16.1 and 16.4 on an iPad.
Following a video demonstration and a minimal reproducible example.
struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundColor(.accentColor)
Text("Hello, world!")
.contextMenu {
Text("Lol")
} preview: {
Text("Preview")
}
}
.padding()
}
}