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