From d5e25f95b92181dce2b3323084c7c9ae50ef2f44 Mon Sep 17 00:00:00 2001 From: funzin Date: Thu, 5 Jul 2018 20:31:22 +0900 Subject: [PATCH 1/2] Change OBJC_ASSOCIATION_ASSIGN to .OBJC_ASSOCIATION_RETAIN_NONATOMIC --- Sica/Source/CALayer+Sica.swift | 4 ++-- Sica/Source/View+Sica.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sica/Source/CALayer+Sica.swift b/Sica/Source/CALayer+Sica.swift index 4dfbad0..39f0b3e 100644 --- a/Sica/Source/CALayer+Sica.swift +++ b/Sica/Source/CALayer+Sica.swift @@ -13,12 +13,12 @@ private let _animatorAssociatedKey = UnsafeMutablePointer.allocate(capacit extension CALayer { public var sica: Animator { set { - objc_setAssociatedObject(self, _animatorAssociatedKey, newValue, .OBJC_ASSOCIATION_ASSIGN) + objc_setAssociatedObject(self, _animatorAssociatedKey, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) } get { guard let animator = objc_getAssociatedObject(self, _animatorAssociatedKey) as? Animator else { let animator = Animator(layer: self) - objc_setAssociatedObject(self, _animatorAssociatedKey, animator, .OBJC_ASSOCIATION_ASSIGN) + objc_setAssociatedObject(self, _animatorAssociatedKey, animator, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) return animator } return animator diff --git a/Sica/Source/View+Sica.swift b/Sica/Source/View+Sica.swift index f967124..0ee9a9f 100644 --- a/Sica/Source/View+Sica.swift +++ b/Sica/Source/View+Sica.swift @@ -13,12 +13,12 @@ private let _animatorAssociatedKey = UnsafeMutablePointer.allocate(capacit extension View { public var sica: Animator { set { - objc_setAssociatedObject(self, _animatorAssociatedKey, newValue, .OBJC_ASSOCIATION_ASSIGN) + objc_setAssociatedObject(self, _animatorAssociatedKey, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) } get { guard let animator = objc_getAssociatedObject(self, _animatorAssociatedKey) as? Animator else { let animator = Animator(view: self) - objc_setAssociatedObject(self, _animatorAssociatedKey, animator, .OBJC_ASSOCIATION_ASSIGN) + objc_setAssociatedObject(self, _animatorAssociatedKey, animator, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) return animator } return animator From d162ae0b5af1f5898ece4e874cdd155fa7674037 Mon Sep 17 00:00:00 2001 From: funzin Date: Thu, 5 Jul 2018 20:32:53 +0900 Subject: [PATCH 2/2] Update --- Sica.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sica.podspec b/Sica.podspec index f0529d3..e957f9c 100644 --- a/Sica.podspec +++ b/Sica.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = "Sica" - s.version = "0.3.0" + s.version = "0.3.1" s.summary = "Sica can execute various animations sequentially or parallely" s.homepage = "https://github.com/cats-oss/Sica" s.license = { :type => "MIT", :file => "LICENSE" }