Giter Site home page Giter Site logo

Comments (8)

burnto avatar burnto commented on July 17, 2024

Thanks @bmctigue. For the sake of cross-app UI consistency, the SDK does not support such appearance customization.

from paypal-ios-sdk.

bmctigue avatar bmctigue commented on July 17, 2024

Thanks for the quick reply.
I'm not sure what you mean. How does hardcoding the color to white help cross app consistency. It's not consistent with the rest of the paypal app. The other view navigation bars behave properly and they are not white. This means I potential have to remove the api. No one else is having this issue? Please look at the other paypal views/viewcontrollers. Update the Navbar appearance to something other than white and they behave correctly.
Thanks Bruce

from paypal-ios-sdk.

burnto avatar burnto commented on July 17, 2024

@bmctigue the SDK is designed with the specific intention of not accommodating such UI customizations. That you are able to modify the colors of the PayPalPaymentViewController navigation bar is an oversight.

We appreciate you reporting this. We'll make a change to prevent such customization shortly, and we'll add a note to the documentation.

By "cross-app UI consistency" I mean maintaining a consistent user experience across a variety of integrating apps.

Thanks.

from paypal-ios-sdk.

bmctigue avatar bmctigue commented on July 17, 2024

Ah, ok. I understand. I would assume then that you will need to hardcode the navitems, button text etc also, so the host app won't change those.

Thanks for the response.

from paypal-ios-sdk.

ssuchanowski avatar ssuchanowski commented on July 17, 2024

Hey,

Anything changed in that manner? I have appearance tint color of nav bar set to white which result in not being able to see any buttons on modal view w/ credit card text fields.

My workaround is setting before presenting PayPalPaymentViewController:

[[UINavigationBar appearance] setTintColor:nil];

And in viewWillAppear doing again:

[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];

Attached view before using fix presented above.
paypal credit card payment

from paypal-ios-sdk.

dgoldman-pdx avatar dgoldman-pdx commented on July 17, 2024

@ssuchanowski at this time, the fix you have implemented is indeed the correct approach.

from paypal-ios-sdk.

bayraa1992 avatar bayraa1992 commented on July 17, 2024

@ssuchanowski
you should change navigationBarColors

[[UINavigationBar appearance] setTintColor:nil];
[[UINavigationBar appearance] setTitleTextAttributes:@{ NSForegroundColorAttributeName : [ConstantValues systemBlackColor]}];
[[UINavigationBar appearance] setBarTintColor:nil];

}

before presenting PayPalPaymentViewController
and write restore navigationbarColors in the
viewWillAppear on presentedViewController

from paypal-ios-sdk.

ssuchanowski avatar ssuchanowski commented on July 17, 2024

@bayraa1992 - please read the post first. I posted the exact solution there.

from paypal-ios-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.