From e2b9a814c848c7a02ab0891d1c4447f5074f4fbe Mon Sep 17 00:00:00 2001 From: funzin Date: Thu, 5 Jul 2018 19:19:17 +0900 Subject: [PATCH] Change UIView to View --- Sica.xcodeproj/project.pbxproj | 8 ++++---- Sica/Source/{UIView+Sica.swift => View+Sica.swift} | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) rename Sica/Source/{UIView+Sica.swift => View+Sica.swift} (94%) diff --git a/Sica.xcodeproj/project.pbxproj b/Sica.xcodeproj/project.pbxproj index 5dc1294..4bb233b 100644 --- a/Sica.xcodeproj/project.pbxproj +++ b/Sica.xcodeproj/project.pbxproj @@ -23,7 +23,7 @@ 9D436C5A20E9E8F200A1B938 /* Sica.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D4A60FE320ABC9890079871A /* Sica.framework */; }; 9D436C6620E9EA1E00A1B938 /* SicaTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4A60FF120ABC9890079871A /* SicaTests.swift */; }; 9D436C6820E9EA1E00A1B938 /* Sica.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D4A60FE320ABC9890079871A /* Sica.framework */; }; - D449535120EE1BAF004C8AB9 /* UIView+Sica.swift in Sources */ = {isa = PBXBuildFile; fileRef = D449535020EE1BAF004C8AB9 /* UIView+Sica.swift */; }; + D449535120EE1BAF004C8AB9 /* View+Sica.swift in Sources */ = {isa = PBXBuildFile; fileRef = D449535020EE1BAF004C8AB9 /* View+Sica.swift */; }; D449535320EE1F20004C8AB9 /* CALayer+Sica.swift in Sources */ = {isa = PBXBuildFile; fileRef = D449535220EE1F20004C8AB9 /* CALayer+Sica.swift */; }; D4A60FED20ABC9890079871A /* Sica.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D4A60FE320ABC9890079871A /* Sica.framework */; }; D4A60FF220ABC9890079871A /* SicaTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4A60FF120ABC9890079871A /* SicaTests.swift */; }; @@ -68,7 +68,7 @@ 9D436C6120E9E93800A1B938 /* Info-tvOS.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-tvOS.plist"; sourceTree = ""; }; 9D436C6D20E9EA1E00A1B938 /* SicaTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SicaTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 9D436C6F20E9EA5000A1B938 /* Info-macOS.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-macOS.plist"; sourceTree = ""; }; - D449535020EE1BAF004C8AB9 /* UIView+Sica.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIView+Sica.swift"; sourceTree = ""; }; + D449535020EE1BAF004C8AB9 /* View+Sica.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "View+Sica.swift"; sourceTree = ""; }; D449535220EE1F20004C8AB9 /* CALayer+Sica.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "CALayer+Sica.swift"; sourceTree = ""; }; D4A60FE320ABC9890079871A /* Sica.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Sica.framework; sourceTree = BUILT_PRODUCTS_DIR; }; D4A60FE620ABC9890079871A /* Sica.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Sica.h; sourceTree = ""; }; @@ -194,7 +194,7 @@ D449535220EE1F20004C8AB9 /* CALayer+Sica.swift */, D4CB78C620AC2BDD003232F6 /* TimingFunction.swift */, D4CB78C220AC2BDD003232F6 /* Transition.swift */, - D449535020EE1BAF004C8AB9 /* UIView+Sica.swift */, + D449535020EE1BAF004C8AB9 /* View+Sica.swift */, ); path = Source; sourceTree = ""; @@ -518,7 +518,7 @@ D4CB78CA20AC2BDD003232F6 /* CAAnimation+Extension.swift in Sources */, D4CB78CD20AC2BDD003232F6 /* Animator.swift in Sources */, D449535320EE1F20004C8AB9 /* CALayer+Sica.swift in Sources */, - D449535120EE1BAF004C8AB9 /* UIView+Sica.swift in Sources */, + D449535120EE1BAF004C8AB9 /* View+Sica.swift in Sources */, D4CB78CE20AC2BDD003232F6 /* AnimationKeyPaths.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/Sica/Source/UIView+Sica.swift b/Sica/Source/View+Sica.swift similarity index 94% rename from Sica/Source/UIView+Sica.swift rename to Sica/Source/View+Sica.swift index 1926774..f967124 100644 --- a/Sica/Source/UIView+Sica.swift +++ b/Sica/Source/View+Sica.swift @@ -1,5 +1,5 @@ // -// UIView+Sica.swift +// View+Sica.swift // Sica-iOS // // Created by 中澤 郁斗 on 2018/07/05. @@ -10,7 +10,7 @@ import Foundation private let _animatorAssociatedKey = UnsafeMutablePointer.allocate(capacity: 1) -extension UIView { +extension View { public var sica: Animator { set { objc_setAssociatedObject(self, _animatorAssociatedKey, newValue, .OBJC_ASSOCIATION_ASSIGN)