-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[NT-539] add background to reward section #950
Conversation
…background-to-reward-section
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 was taking a look at the code and actually we could make this work a bit simpler.
I opened this PR some time ago and what we can do is revert the changes (related to backgroundColor and styling) of RewardCardView
and RewardCardViewModel
and add a container UIView
on ManagePledgeRewardView
with rounded corners and white background to place the reward view in it.
Doing this we will also avoid working with the complexity of the other RewardCardContainerView
. I'm happy to pair on this if you want :)
…background-to-reward-section
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.
Just a few more things, but it's looking good otherwise!
_ = self.rewardView | ||
|> checkoutBackgroundStyle | ||
_ = self.backgroundView | ||
|> checkoutWhiteBackgroundStyle |
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.
Here we can create a let backgroundViewStyle
and move the styling to the bottom of the file.
@@ -12,6 +12,7 @@ final class ManagePledgeRewardView: UIView { | |||
|
|||
private lazy var rootStackView: UIStackView = { UIStackView(frame: .zero) }() | |||
private lazy var titleLabel: UILabel = { UILabel(frame: .zero) }() | |||
private lazy var backgroundView: UIView = { UIView(frame: .zero) }() |
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.
Can you alphabetize here? 😬
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.
Thank you for addressing the feedback, @cdolm92 . It looks great! Well done 🌟
📲 What
The white background is shown behind the reward section of the View/Manage Pledge screen for both backers and creators.
🛠 How
Reused
rewardCardContainerView
inManagePledgeRewardView
👀 See
Check out snapshots too!
✅ Acceptance criteria