-
Notifications
You must be signed in to change notification settings - Fork 36
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
[MUON-543] BPKGraphic promo sponsored #2073
Conversation
@@ -70,6 +70,29 @@ public struct BPKGraphicPromo: View { | |||
self.verticalAlignment = verticalAlignment | |||
} | |||
|
|||
public init( |
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.
Probably the most significant breaking change. We want a direct init for the sponsored version, as some of the fields from the organic version are not used in the sponsored one.
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.
looks good!
if let sponsor { | ||
sponsorContentView(sponsor) | ||
} else { | ||
Spacer() | ||
VStack(alignment: .leading, spacing: .md) { | ||
if verticalAlignment == .bottom { | ||
Spacer() |
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.
Hard fork for the content of organic vs. sponsored
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.
Left some comments from initial review 😄
Snapshots were updated. Please verify the changes match the expected layout.
|
Thanks for the ✅ @brunomdac , we are good to merge now. |
Update sponsored BPKGraphic Promo
init
(as opposed to the previous modifier approach). This is a breaking change, so let's discuss (though to our knowledge this component isn't being used yet).Remember to include the following changes:
README.md
Backpack.h
header fileIf you are curious about how we review, please read through the code review guidelines