This repository has been archived by the owner on Apr 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 134
background color not changing #62
Comments
@cs14rendra I have recently created a new Swifty library for iOS pin view. Please have a look. https:/siavashalipour/SAPinViewController |
@cs14rendra Sorry but I'm not entirely sure what you mean. The example project describes how to set the background color of the view: ABPadLockScreenView.appearance().backgroundColor = UIColor(hue:0.61, saturation:0.55, brightness:0.64, alpha:1) If you can provide an example of the issues you're having I'll try and provide some guidance. |
Thanks for letting me know @sarah-jameson. In the mean time, you can set the background color for the view directly without using UIApperance: let lockScreen = ABPadLockScreenViewController(delegate: self, complexPin: false)
lockScreen.view.backgroundColor = UIColor.redColor() |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am running swift demo app , background color showing black . In another project , i am calling it in a observer and When app coming from background then at that time only background color is showing change .
NSNotificationCenter.defaultCenter().addObserverForName(UIApplicationDidEnterBackgroundNotification, object: nil, queue: NSOperationQueue.mainQueue()) {_ in
In one Line - In observer it is working but as a normal code it is not working
The text was updated successfully, but these errors were encountered: