How to handle Skip Action #291
Unanswered
arishanapalli
asked this question in
Q&A
Replies: 1 comment
-
Changing the behaviour of skip button is not possible. The next best options would be to not set func coachMarksController(_ coachMarksController: CoachMarksController,
configureOrnamentsOfOverlay overlay: UIView) {
let button = UIButton()
button.setTitle("Skip", for: .normal)
button.translatesAutoresizingMaskIntoConstraints = false
button.addTarget(self, action: #selector(didTapSkipButton), for: .touchUpInside)
overlay.addSubview(button)
button.trailingAnchor.constraint(equalTo: overlay.trailingAnchor).isActive = true
button.topAnchor.constraint(equalTo: overlay.topAnchor, constant: 100).isActive = true
}
@objc didTapSkipButton() {
// Present Alert.
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to handle skip action.
If user clip skip, I want to show alert screen -> do you want to skip the Instructions screen? Accept / No -> if click Accept then skip the instructions.
Beta Was this translation helpful? Give feedback.
All reactions