Skip to content

Commit

Permalink
Update project to Swift 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
onmyway133 committed Sep 24, 2018
1 parent 5f62972 commit d82de93
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.1
4.2
4 changes: 2 additions & 2 deletions Anchors.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "Anchors"
s.summary = "Declarative, extensible, powerful Auto Layout for iOS and macOS"
s.version = "2.3.0"
s.version = "2.4.0"
s.homepage = "https://github.com/onmyway133/Anchors"
s.license = 'MIT'
s.author = { "Khoa Pham" => "[email protected]" }
Expand All @@ -21,5 +21,5 @@ Pod::Spec.new do |s|
s.ios.frameworks = 'UIKit', 'Foundation'
s.osx.frameworks = 'Cocoa', 'Foundation'

s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4.1' }
s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4.2' }
end
4 changes: 2 additions & 2 deletions Anchors.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
Expand Down Expand Up @@ -795,7 +795,7 @@
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
Expand Down
4 changes: 2 additions & 2 deletions Sources/Core/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
public typealias View = UIView
public typealias EdgeInsets = UIEdgeInsets
public typealias LayoutGuide = UILayoutGuide
public typealias Relation = NSLayoutRelation
public typealias Attribute = NSLayoutAttribute
public typealias Relation = NSLayoutConstraint.Relation
public typealias Attribute = NSLayoutConstraint.Attribute
#elseif os(OSX)
import AppKit
public typealias View = NSView
Expand Down

0 comments on commit d82de93

Please sign in to comment.