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