klarna / klarna-mobile-sdk

Klarna Mobile SDK for iOS
https://docs.klarna.com/mobile-sdk/ios/
Apache License 2.0
29 stars 12 forks source link

How can I get BGProdKlarnaView height? #110

Closed hanorz closed 3 years ago

hanorz commented 3 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

I set translatesAutoresizingMaskIntoConstraints = NO, I can not get BGProdKlarnaView height after data loading.

I put BGProdKlarnaView into tableview cell ,so I need to know to height of it.

polar133 commented 3 years ago

Hi @hanorz, thanks for reaching out. I think you are asking about the event listener in the Payment view, in the docs you can find more information: https://docs.klarna.com/in-app/inapp-ios-overview/klarna-payments-native/#handling-height-changes

hanorz commented 3 years ago

Hi @hanorz, thanks for reaching out. I think you are asking about the event listener in the Payment view, in the docs you can find more information: https://docs.klarna.com/in-app/inapp-ios-overview/klarna-payments-native/#handling-height-changes

Thanks. I think this is it!

hanorz commented 3 years ago

I think there is KlarnaOSMViewEventListener can return the height after loading KlarnaOSMView