You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fatalError("init(coder:) has not been implemented")
37
36
}
38
-
37
+
39
38
@objcpublicfunc didSetProps(){
40
-
if(visible && !wasVisible){
39
+
if visible && !wasVisible {
41
40
presentAddressSheet()
42
41
wasVisible =true
43
-
}elseif(!visible && wasVisible){
42
+
}elseif !visible && wasVisible {
44
43
addressViewController?.dismiss(animated:true)
45
44
wasVisible =false
46
45
}
@@ -51,11 +50,11 @@ public class AddressSheetView: UIView {
51
50
// by the view component.
52
51
self.didSetProps()
53
52
}
54
-
53
+
55
54
privatefunc presentAddressSheet(){
56
-
if(STPAPIClient.shared.publishableKey ==nil){
55
+
ifSTPAPIClient.shared.publishableKey ==nil{
57
56
onErrorAction!(
58
-
Errors.createError(ErrorType.Failed,"No publishable key set. Stripe has not been initialized. Initialize Stripe in your app with the StripeProvider component or the initStripe method.")as?[AnyHashable:Any]
57
+
Errors.createError(ErrorType.Failed,"No publishable key set. Stripe has not been initialized. Initialize Stripe in your app with the StripeProvider component or the initStripe method.")as?[AnyHashable:Any]
59
58
)
60
59
return
61
60
}
@@ -64,38 +63,38 @@ public class AddressSheetView: UIView {
0 commit comments