From 9983974352b5dbc87b732a303fa640e1c2b8f81a Mon Sep 17 00:00:00 2001 From: Nick Velloff Date: Tue, 5 Apr 2016 16:08:41 -0700 Subject: [PATCH] Swift 2.2 --- GridLogo.xcodeproj/project.pbxproj | 10 ++-------- GridLogo/GridAnimatedLogo.swift | 2 +- GridLogo/Info.plist | 4 ++-- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/GridLogo.xcodeproj/project.pbxproj b/GridLogo.xcodeproj/project.pbxproj index 7107d98..2e729d2 100644 --- a/GridLogo.xcodeproj/project.pbxproj +++ b/GridLogo.xcodeproj/project.pbxproj @@ -385,10 +385,7 @@ 01F378211B3F13DA0028211B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - ); + FRAMEWORK_SEARCH_PATHS = "$(inherited)"; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", @@ -403,10 +400,7 @@ 01F378221B3F13DA0028211B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - ); + FRAMEWORK_SEARCH_PATHS = "$(inherited)"; INFOPLIST_FILE = GridLogoTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "io.thegrid.grid.$(PRODUCT_NAME:rfc1034identifier)"; diff --git a/GridLogo/GridAnimatedLogo.swift b/GridLogo/GridAnimatedLogo.swift index 8faf3ce..274aded 100644 --- a/GridLogo/GridAnimatedLogo.swift +++ b/GridLogo/GridAnimatedLogo.swift @@ -96,7 +96,7 @@ public class AnimatedGridLogo: UIView { let path = UIBezierPath() path.moveToPoint(curr) - for var i=0; i < turns; i++ { + for i in 0 ..< turns { scalestep = round((CGFloat(i) + 1) / 2.0) * CGFloat(md) curr = CGPoint(x: CGFloat(last.x) + (scalestep * CGFloat(xstep[i % 4])), y: CGFloat(last.y) + (scalestep * CGFloat(ystep[i % 4]))).toInt() diff --git a/GridLogo/Info.plist b/GridLogo/Info.plist index 4adb0b0..68837d5 100644 --- a/GridLogo/Info.plist +++ b/GridLogo/Info.plist @@ -15,11 +15,11 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.09 + 2.00 CFBundleSignature ???? CFBundleVersion - $(CURRENT_PROJECT_VERSION) + 0 NSPrincipalClass