diff --git a/SmileLock-Example/SmileLock-Example/Assets.xcassets/AppIcon.appiconset/Contents.json b/SmileLock-Example/SmileLock-Example/Assets.xcassets/AppIcon.appiconset/Contents.json index bd3a449..61f3293 100644 --- a/SmileLock-Example/SmileLock-Example/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/SmileLock-Example/SmileLock-Example/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -1,5 +1,15 @@ { "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, { "idiom" : "iphone", "size" : "29x29", @@ -31,6 +41,16 @@ "size" : "60x60", "scale" : "3x" }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, { "idiom" : "ipad", "size" : "29x29", @@ -65,6 +85,11 @@ "idiom" : "ipad", "size" : "83.5x83.5", "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" } ], "info" : { diff --git a/SmileLock.podspec b/SmileLock.podspec index d368aeb..ef46ca8 100644 --- a/SmileLock.podspec +++ b/SmileLock.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "SmileLock" - s.version = "3.0.1" + s.version = "3.0.2" s.summary = "A library for make a beautiful Passcode Lock View." s.description = <<-DESC 1. Create a beautiful passcode lock view simply. @@ -22,5 +22,6 @@ Pod::Spec.new do |s| s.source_files = 'SmileLock/Classes/*.{swift}' s.resources = 'SmileLock/Assets/*' s.frameworks = 'UIKit' + s.weak_framework = 'LocalAuthentication' end diff --git a/SmileLock/Classes/PasswordContainerView.swift b/SmileLock/Classes/PasswordContainerView.swift index d307e0d..43aff09 100644 --- a/SmileLock/Classes/PasswordContainerView.swift +++ b/SmileLock/Classes/PasswordContainerView.swift @@ -145,7 +145,7 @@ open class PasswordContainerView: UIView { var image = touchAuthenticationButton.imageView?.image?.withRenderingMode(.alwaysTemplate) if #available(iOS 11, *) { - if touchIDContext.biometryType == .typeFaceID { + if touchIDContext.biometryType == .faceID { let bundle = Bundle(for: type(of: self)) image = UIImage(named: "faceid", in: bundle, compatibleWith: nil)?.withRenderingMode(.alwaysTemplate) }