Skip to content

Commit

Permalink
Fixed issue #47 (#50)
Browse files Browse the repository at this point in the history
* Bugfix: YPSignatureDelegate not public #47

* Added badge

* Update README.md

* Update README.md
  • Loading branch information
GJ Korsbø Zwart authored Mar 30, 2018
1 parent 92eb5bb commit 969767d
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 26 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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.

Expand Down
46 changes: 34 additions & 12 deletions SignatureTest/SignatureTest.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
};
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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";
Expand All @@ -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;
};
Expand All @@ -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;
};
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
};
Expand All @@ -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;
};
Expand Down
11 changes: 6 additions & 5 deletions SignatureTest/SignatureTest/Base.lproj/LaunchScreen.storyboard
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8150" systemVersion="15A204g" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14109" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="NO" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8122"/>
<deployment identifier="iOS"/>
<development version="7000" identifier="xcode"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
</dependencies>
<scenes>
<!--View Controller-->
Expand All @@ -15,8 +17,7 @@
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<animations/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
Expand Down
8 changes: 4 additions & 4 deletions SignatureTest/SignatureTest/YPDrawSignatureView.swift
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 {
Expand Down Expand Up @@ -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()")
Expand Down
8 changes: 4 additions & 4 deletions Sources/YPDrawSignatureView.swift
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 {
Expand Down Expand Up @@ -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()")
Expand Down

0 comments on commit 969767d

Please sign in to comment.