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