-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Models the Action for the ButtonComponent #4353
Conversation
…omponents/button-component-2 # Conflicts: # RevenueCatUI/Templates/Components/Button/ButtonComponentView.swift # Sources/Paywalls/Components/PaywallButtonComponent.swift
RevenueCatUI/Templates/Components/Button/ButtonComponentView.swift
Outdated
Show resolved
Hide resolved
…omponents/button-component-2
…omponents/button-component-2
…omponents/button-component-2
…omponents/button-component-2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A small nit on a rename but otherwise this looks good to me! Approving because I mentioned this on a PR further down the chain that I requested changes on
func onClick() { | ||
// swiftlint:disable:next todo | ||
// TODO Handle the configured Action. | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mentioned this in a PR further down the chain but I would probably name this to performAction()
since it could be a click or a tap 😇 Just a nit of mine 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes, great point. I'll rename it in the other PR, since this function is moved in that PR as well.
# Conflicts: # RevenueCatUI/Templates/Components/Button/ButtonComponentView.swift # RevenueCatUI/Templates/Components/Button/ButtonComponentViewModel.swift # Sources/Paywalls/Components/PaywallButtonComponent.swift
As the title says. No implementation whatsoever. Will do that in follow-ups.