iOS Swift - SwiftUI Basics
Why does this code cause a runtime crash when the button is tapped?
button.addTarget(self, action: #selector(buttonPressed(_:)), for: .touchUpInside)
@objc func buttonPressed() {
print("Pressed")
}