ryasnoy / applocker Goto Github PK
View Code? Open in Web Editor NEWAppLocker - simple lock screen for iOS Application ( Swift 4+, iOS 9.0+) Touch ID / Face ID
License: MIT License
AppLocker - simple lock screen for iOS Application ( Swift 4+, iOS 9.0+) Touch ID / Face ID
License: MIT License
When filling in the pin code, the indicator will not be round but square.
This might create a problem. I'll create a PR of this alongside some additions such as callback on validate
AppLocker/Source/AppLocker/AppLocker.swift
Line 196 in 72f3a9a
No such module 'Valet'
I want this to be presented on a custom button and i want to know if the pin is correct or not so is there a delegate or a completion block for this?
ALAppearance initializer is inaccessible due to 'internal' protection level
My problems resolved if I add:
"public init" and make "public" all the variables
public struct ALAppearance { // The structure used to display the controller
public var title: String?
public var subtitle: String?
public var image: UIImage?
public var color: UIColor?
public var isSensorsEnabled: Bool?
public init() {}
}
Hey,
i checked the detail Code of the AppLocker Implementation and i was not amused to see that you save the pin in the UserDefaults by default. Its really unsecure to use that place and it seems that there is no chance to change the location? Im right?
Is it possible to give the user the control over the save location of the pin code?
Hi there,
Apologies as I am learning SWIFT (Aren't we all!?) :)
I have implemented the basic appearance exactly as you have in the example - I have even added it a few different ways, but still get the same error.
'Cannot convert value of type 'ALAppearance' to expected argument type 'ALAppearance?''
I have tried cleaning, building, re-connecting the variable, moving the variable definition.
I have currently installed and updated AppLocker via CocoaPods.
Thank you.
J
Passcode lost after phone data transfer to other new phone.
try! AppLocker.valet.setString(newValue, forKey: ALConstants.kPincode)
Keychain store value become empty after phone data transfer. How can i retrive passcode or any forgot passcode option available?
A property savedPin has getter and setter. Shows error like this:
get {
return AppLocker.valet.string(forKey: ALConstants.kPincode) // Error: Call can throw, but it is not marked with 'try' and the error is not handled
}
set {
guard let newValue = newValue else { return }
AppLocker.valet.set(string: newValue, forKey: ALConstants.kPincode) // Error: Call can throw, but it is not marked with 'try' and the error is not handled
}
Is anybody can help to resolve this issue?
I have a security pin pre-defined, how can I set the pin directly to the app locker
how can I get successful listeners on password right or wrong.
Itry to load it in applicationdidfinshedload and it doesnt load works only form the screen
Thanks in advnce
if #available(iOS 13.0, *) {
locker.isModalInPresentation = true
} else {
// Fallback on earlier versions
}
locker.modalPresentationStyle = .fullScreen
i need to present applocker fullscreen i add some codes on
class func present(with mode: ALMode, and config: ALAppearance? = nil) {
but still, it's not coming with fullscreen also I changed in xib PresentationStyle = .fullScreen
Is an update possible to 5.1 or even 5? Struggling to run this as it keeps crashing when I 'validate' the code.
When using
pod 'AppLocker'
I got the Swift 4 version. I have to use
pod 'AppLocker', :git => 'https://github.com/Ryasnoy/AppLocker.git'
to get the Swift 5 version.
Also, you should name the two versions with more suitable tag names, currently all of them are version 2.0 in Xcode.
Hi,
Thanks for a very nice tool.
Please is there a callback function when create or validate is done?
Hi, first, this is a great comprehensive control -- so Thank you! I am seeing a console warning when I try to validate a code: "Cannot be called with asCopy = NO on non-main thread".
Just letting you know.
This is in Xcode 10, b1000 ;)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.