Skip to content

Commit 0e40f81

Browse files
committed
fix #23
1 parent 251218d commit 0e40f81

File tree

3 files changed

+42
-52
lines changed

3 files changed

+42
-52
lines changed

Classes/ZFRippleButton.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ open class ZFRippleButton: UIButton {
8181

8282
rippleBackgroundView.backgroundColor = rippleBackgroundColor
8383
rippleBackgroundView.frame = bounds
84-
layer.addSublayer(rippleBackgroundView.layer)
85-
rippleBackgroundView.layer.addSublayer(rippleView.layer)
84+
rippleBackgroundView.addSubview(rippleView)
8685
rippleBackgroundView.alpha = 0
86+
addSubview(rippleBackgroundView)
8787

8888
layer.shadowRadius = 0
8989
layer.shadowOffset = CGSize(width: 0, height: 1)

Demo/ZFRippleButtonDemo/ZFRippleButtonDemo.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@
353353
buildSettings = {
354354
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
355355
INFOPLIST_FILE = ZFRippleButtonDemo/Info.plist;
356-
IPHONEOS_DEPLOYMENT_TARGET = 7.1;
356+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
357357
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
358358
PRODUCT_NAME = "$(TARGET_NAME)";
359359
SWIFT_VERSION = 3.0;
@@ -365,7 +365,7 @@
365365
buildSettings = {
366366
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
367367
INFOPLIST_FILE = ZFRippleButtonDemo/Info.plist;
368-
IPHONEOS_DEPLOYMENT_TARGET = 7.1;
368+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
369369
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
370370
PRODUCT_NAME = "$(TARGET_NAME)";
371371
SWIFT_VERSION = 3.0;

0 commit comments

Comments
 (0)