button click programmatically swift code example Example: button click programmatically swift button.sendActions(for: .touchUpInside)