button action swiftui code example
Example 1: change ui button swift
button.setTitle("Button Title", for: .normal)
Example 2: button click programmatically swift
button.sendActions(for: .touchUpInside)
button.setTitle("Button Title", for: .normal)
button.sendActions(for: .touchUpInside)