diff --git a/README.md b/README.md index c089585..55ff5cd 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # YPDrawSignatureView +![Image of Swift Version Badge](https://img.shields.io/badge/Swift-4.1-lightgrey.svg) Simple class for capturing signatures. @@ -159,7 +160,11 @@ YPDrawSignatureView is available under the MIT license. See the [LICENSE](LICENS ## Update history -### v1.1.2 - 6/16/17 +### v1.1.3 - 3/30/18 + +* Minor bugfix. + +#### v1.1.2 - 6/16/17 * Minor bugfix. diff --git a/SignatureTest/SignatureTest.xcodeproj/project.pbxproj b/SignatureTest/SignatureTest.xcodeproj/project.pbxproj index 4df3945..310ff6d 100644 --- a/SignatureTest/SignatureTest.xcodeproj/project.pbxproj +++ b/SignatureTest/SignatureTest.xcodeproj/project.pbxproj @@ -191,22 +191,22 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0720; - LastUpgradeCheck = 0830; + LastUpgradeCheck = 0930; ORGANIZATIONNAME = Yuppielabel; TargetAttributes = { 4BE489E41C252F8B00741EAD = { CreatedOnToolsVersion = 7.2; - LastSwiftMigration = 0800; + LastSwiftMigration = 0930; }; 4BE489F81C252F8E00741EAD = { CreatedOnToolsVersion = 7.2; DevelopmentTeam = 784F7MSSDM; - LastSwiftMigration = 0800; + LastSwiftMigration = 0930; TestTargetID = 4BE489E41C252F8B00741EAD; }; 4BE48A031C252F8F00741EAD = { CreatedOnToolsVersion = 7.2; - LastSwiftMigration = 0800; + LastSwiftMigration = 0930; TestTargetID = 4BE489E41C252F8B00741EAD; }; }; @@ -328,14 +328,22 @@ CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; @@ -358,7 +366,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.3; + IPHONEOS_DEPLOYMENT_TARGET = 11.3; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -375,14 +383,22 @@ CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; @@ -399,7 +415,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.3; + IPHONEOS_DEPLOYMENT_TARGET = 11.3; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; @@ -416,7 +432,8 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = SignatureTest; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 3.0; + SWIFT_SWIFT3_OBJC_INFERENCE = On; + SWIFT_VERSION = 4.0; }; name = Debug; }; @@ -430,7 +447,8 @@ PRODUCT_BUNDLE_IDENTIFIER = SignatureTest; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - SWIFT_VERSION = 3.0; + SWIFT_SWIFT3_OBJC_INFERENCE = On; + SWIFT_VERSION = 4.0; }; name = Release; }; @@ -443,7 +461,8 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.yuppielabel.SignatureTestTests; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 3.0; + SWIFT_SWIFT3_OBJC_INFERENCE = On; + SWIFT_VERSION = 4.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SignatureTest.app/SignatureTest"; }; name = Debug; @@ -458,7 +477,8 @@ PRODUCT_BUNDLE_IDENTIFIER = com.yuppielabel.SignatureTestTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - SWIFT_VERSION = 3.0; + SWIFT_SWIFT3_OBJC_INFERENCE = On; + SWIFT_VERSION = 4.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SignatureTest.app/SignatureTest"; }; name = Release; @@ -470,7 +490,8 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.yuppielabel.SignatureTestUITests; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 3.0; + SWIFT_SWIFT3_OBJC_INFERENCE = On; + SWIFT_VERSION = 4.0; TEST_TARGET_NAME = SignatureTest; USES_XCTRUNNER = YES; }; @@ -484,7 +505,8 @@ PRODUCT_BUNDLE_IDENTIFIER = com.yuppielabel.SignatureTestUITests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - SWIFT_VERSION = 3.0; + SWIFT_SWIFT3_OBJC_INFERENCE = On; + SWIFT_VERSION = 4.0; TEST_TARGET_NAME = SignatureTest; USES_XCTRUNNER = YES; }; diff --git a/SignatureTest/SignatureTest/Base.lproj/LaunchScreen.storyboard b/SignatureTest/SignatureTest/Base.lproj/LaunchScreen.storyboard index 2e721e1..9d547ae 100644 --- a/SignatureTest/SignatureTest/Base.lproj/LaunchScreen.storyboard +++ b/SignatureTest/SignatureTest/Base.lproj/LaunchScreen.storyboard @@ -1,7 +1,9 @@ - - + + - + + + @@ -15,8 +17,7 @@ - - + diff --git a/SignatureTest/SignatureTest/YPDrawSignatureView.swift b/SignatureTest/SignatureTest/YPDrawSignatureView.swift index 1e26b38..98151f2 100644 --- a/SignatureTest/SignatureTest/YPDrawSignatureView.swift +++ b/SignatureTest/SignatureTest/YPDrawSignatureView.swift @@ -1,7 +1,7 @@ // YPDrawSignatureView is open source -// Version 1.1.2 +// Version 1.1.3 // -// Copyright (c) 2014 - 2017 The YPDrawSignatureView Project Contributors +// Copyright (c) 2014 - 2018 The YPDrawSignatureView Project Contributors // Available under the MIT license // // https://github.com/GJNilsen/YPDrawSignatureView/blob/master/LICENSE License Information @@ -27,7 +27,7 @@ import CoreGraphics @IBDesignable final public class YPDrawSignatureView: UIView { - weak var delegate: YPSignatureDelegate? + public weak var delegate: YPSignatureDelegate? // MARK: - Public properties @IBInspectable public var strokeWidth: CGFloat = 2.0 { @@ -217,7 +217,7 @@ final public class YPDrawSignatureView: UIView { /// - optional didStart() /// - optional didFinish() @objc -protocol YPSignatureDelegate: class { +public protocol YPSignatureDelegate: class { func didStart() func didFinish() @available(*, unavailable, renamed: "didFinish()") diff --git a/Sources/YPDrawSignatureView.swift b/Sources/YPDrawSignatureView.swift index 236f60b..79a5574 100644 --- a/Sources/YPDrawSignatureView.swift +++ b/Sources/YPDrawSignatureView.swift @@ -1,7 +1,7 @@ // YPDrawSignatureView is open source -// Version 1.1.2 +// Version 1.1.3 // -// Copyright (c) 2014 - 2017 The YPDrawSignatureView Project Contributors +// Copyright (c) 2014 - 2018 The YPDrawSignatureView Project Contributors // Available under the MIT license // // https://github.com/GJNilsen/YPDrawSignatureView/blob/master/LICENSE License Information @@ -27,7 +27,7 @@ import CoreGraphics @IBDesignable final public class YPDrawSignatureView: UIView { - weak var delegate: YPSignatureDelegate? + public weak var delegate: YPSignatureDelegate? // MARK: - Public properties @IBInspectable public var strokeWidth: CGFloat = 2.0 { @@ -209,7 +209,7 @@ final public class YPDrawSignatureView: UIView { /// - optional didStart() /// - optional didFinish() @objc -protocol YPSignatureDelegate: class { +public protocol YPSignatureDelegate: class { func didStart() func didFinish() @available(*, unavailable, renamed: "didFinish()")