How do I fix my .onChange(of:perform) to avoid Xcode giving me a deprecation warning?
I am apptemting to learn SwiftUI, Swift, and Xcode for macOS. The code below works but I'd like to have no warnings. The complete warning is: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use onChange with a two or zero parameter…