We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'onChange(of:perform:)' is only available in macOS 11.0 or newer
File EasyMenu.swift
// MARK: Body public var body: some View { Button { withAnimation(.easeInOut(duration: config.animationDuration)) { showMenu.toggle() } } label: { label } .onAppear(perform: { #if os(macOS) if let screen = NSScreen.main { screenWidth = screen.frame.size.width screenHeight = screen.frame.size.height } #else screenWidth = UIScreen.main.bounds.size.width screenHeight = UIScreen.main.bounds.size.height * 2 #endif }) .overlay(backgroundOverlay()) .overlay(menuOverlay()) .onChange(of: isActive) { newValue in //// <<--- ERROR withAnimation(.easeInOut(duration: config.animationDuration)) { showMenu.toggle() } } // .zIndex(Double.infinity) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
'onChange(of:perform:)' is only available in macOS 11.0 or newer
File EasyMenu.swift
The text was updated successfully, but these errors were encountered: