Comments (9)
Same problem here! :/
Seems to be something related to the placeholders. I checked all connections and everything is fine.
from swiftpasscodelock.
I've been seeing similar weirdnesses and there actually is an open radar: https://openradar.appspot.com/23114017
from swiftpasscodelock.
@gblotter, really there is a problem with @IBInspectable and @IBDesignable. But I think I solved this copying PasscodeSignButton.swift and PasscodeSignPlaceholderView.swift to my project.
Now my XIB have correct buttons and placeholder, and I can change its properties in Interface Builder, but exactly how @kiokumicu said, I got the error when I tap on any number.
No errors are throw when I use the same XIB on Demo Project. What are we missing?
from swiftpasscodelock.
I found a temporary solution: using Carthage, I replaced the PasscodeLockView.xib found in /Carthage/Checkouts/SwiftPasscodeLock/PasscodeLock
by my custom XIB. Then I compiled the framework again using carthage build
. Remember to remove your custom XIB from your project, since it is embedded directly in the framework now.
As alternative, you can add a Run Script build phase that invokes Carthage like so:
/usr/local/bin/carthage build --platform "$PLATFORM_NAME" "$SRCROOT"
.
For now it works, but it should work as described out of box. I'm looking forward for a definitive solution. :)
from swiftpasscodelock.
have anybody a working example of extending the PasscodeLockView.xib?
I just don't understand what I need to do to make this happen
from swiftpasscodelock.
To use a custom design create a new nib
file called PasscodeLockView.xib
in your project. Then select the File's Owner
and in the Identity Inspector set the class to PasscodeLockViewController
and Module to PasscodeLock
.
from swiftpasscodelock.
Now I have another error with custom PasscodeLockView.xib when tap on on any number
fatal error: NSArray element failed to match the Swift Array Element type
Install from cocoapods and add PasscodeSignButton.swift, PasscodeSignPlaceholderView.swift files to project
from swiftpasscodelock.
Love this library, but customization is still really hard to grasp. It is necessary because Apple will deny submitted apps that do not have a customized PasscodeLock. If you could provide a little more documentation on how to achieve customization that would be great. But, yeah GREAT library seriously.
from swiftpasscodelock.
Ended up solving all of this by using the Pod file installation over the Carthage method. Then just follow the directions as posted.
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
pod 'PasscodeLock', '~> 1.0.2'
from swiftpasscodelock.
Related Issues (20)
- Troy
- Cannot display passcode on app open with SceneDelegate
- Iphone 6 and Iphone 6S dots and keypad not increase their size
- Swift 3 Update :D HOT 11
- Swift 2.3 update? HOT 1
- PasscodeLock App Delegate preventing SVProgressHUD from showing HOT 1
- Support both passcode and TouchID at the same time like iphone passcode lockscreen HOT 2
- Carthage build issue on swift 3.1 HOT 5
- Pre-set password? HOT 1
- App rejected with passcode lock HOT 3
- Can I pass segue from passcode viewController? HOT 5
- UI looks of SwiftPasscodeLock will get your app rejected from the app store HOT 3
- Landscape mode not supported
- Swift 4 HOT 3
- Simultaneous accesses to *, but modification requires exclusive access HOT 8
- crash when set password HOT 2
- Not maintained? HOT 2
- T
- New
- Perforce branch might be sync'ed multiple times with different
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftpasscodelock.