[ad_1]
I am comparatively new to iOS growth. Possibly I am simply overreacting, however I would wish to know what to do about this. I’ve a ContentView
:
import SwiftUI
struct ContentView: View {
var physique: some View {
Textual content("Favourite Card Swimsuit")
.padding()
.contextMenu {
Button("♥️ - Hearts", motion: selectHearts)
}
}
func selectHearts() {
print("hearts")
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
I copied the related components from https://developer.apple.com/documentation/swiftui/contextmenu. It really works, however within the XCode console it reads
hearts
2022-03-19 12:39:46.299344+0100 take a look at[52717:2616062] [Assert] Attempting to decrement unsatisfiableConstraintsLoggingSuspensionCount when it is already 0. We misplaced rely a method or one other, or else we had a stack recursion. self = <TtGC7SwiftUI14_UIHostingViewGVS_15ModifiedContentVS_7AnyViewVS_12RootModifier: 0x148808ed0; body = (0 0; 428 926); autoresize = W+H; gestureRecognizers = <NSArray: 0x6000037e9d70>; layer = <CALayer: 0x6000039a2840>>
[ad_2]