Skip to content

Commit

Permalink
lowered deployment target to 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusGeffarth committed Oct 13, 2018
1 parent 6cf20ae commit a076887
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
8 changes: 2 additions & 6 deletions Source/Brush.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,8 @@ public class Brush {
}

private func adjustedWidth(for touch: UITouch) -> CGFloat {
if #available(iOS 9.1, *), touch.type == .stylus {
return (originalWidth*(1-adjustedWidthFactor/10*2)) + (adjustedWidthFactor/touch.altitudeAngle)
} else {
// Fallback on earlier versions
}
return originalWidth
guard #available(iOS 9.1, *), touch.type == .stylus else { return originalWidth }
return (originalWidth*(1-adjustedWidthFactor/10*2)) + (adjustedWidthFactor/touch.altitudeAngle)
}

public func adjustWidth(for touch: UITouch) {
Expand Down
2 changes: 1 addition & 1 deletion SwiftyDraw.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/Awalz/SwiftyDraw.git', :tag => s.version }
s.social_media_url = 'https://twitter.com/linusgeffarth'

s.ios.deployment_target = '9.1'
s.ios.deployment_target = '8.0'
s.swift_version = '4.0'

s.source_files = 'Source/**/*'
Expand Down
4 changes: 2 additions & 2 deletions SwiftyDrawExample/SwiftyDrawExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@
INFOPLIST_FILE = SwiftyDrawExample/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = Walzy.io.SwiftyDrawExample;
PRODUCT_BUNDLE_IDENTIFIER = "com.linus-geffarth.SwiftyDrawExample";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -299,7 +299,7 @@
INFOPLIST_FILE = SwiftyDrawExample/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = Walzy.io.SwiftyDrawExample;
PRODUCT_BUNDLE_IDENTIFIER = "com.linus-geffarth.SwiftyDrawExample";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down
Binary file not shown.

0 comments on commit a076887

Please sign in to comment.