-
Notifications
You must be signed in to change notification settings - Fork 997
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
Update embedded appearance API and add to playground #4062
Conversation
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.
Awesome. BTW let's use the embedded
label in PRs going forward!
@@ -6,7 +6,7 @@ | |||
// Copyright © 2022 stripe-ios. All rights reserved. | |||
// | |||
|
|||
@_spi(STP) import StripePaymentSheet | |||
@_spi(STP) @_spi(EmbeddedPaymentElementPrivateBeta) import StripePaymentSheet |
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 we remove (STP)? Leaving it risks not noticing if we break visibility of an API.
@@ -237,6 +284,7 @@ struct AppearancePlaygroundView: View { | |||
Section(header: Text("Miscellaneous")) { | |||
Stepper(String(format: "cornerRadius: %.1f", appearance.cornerRadius), value: cornerRadiusBinding, in: 0...30) | |||
Stepper(String(format: "borderWidth: %.1f", appearance.borderWidth), value: borderWidthBinding, in: 0.0...2.0, step: 0.5) | |||
Stepper(String(format: "selectedBorderWidth: %.1f", appearance.selectedBorderWidth ?? appearance.borderWidth * 1.5), value: borderWidthBinding, in: 0.0...2.0, step: 0.5) |
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.
Stepper(String(format: "selectedBorderWidth: %.1f", appearance.selectedBorderWidth ?? appearance.borderWidth * 1.5), value: borderWidthBinding, in: 0.0...2.0, step: 0.5) | |
Stepper(String(format: "selectedBorderWidth: %.1f", appearance.selectedBorderWidth ?? appearance.borderWidth * 1.5), value: selectedBorderWidthBinding, in: 0.0...2.0, step: 0.5) |
right?
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.
ah good eye!
/// The insets of the separator line between rows | ||
public var separatorInsets: UIEdgeInsets? |
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.
Let's add a note about behavior when nil.
Summary
Simulator.Screen.Recording.-.iOS.18.-.2024-09-26.at.09.41.56.mp4
Motivation
Testing
Changelog
N/A