Skip to content

Commit

Permalink
fixed protocol conformance error with Swift 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
u10int committed Apr 28, 2018
1 parent 48a00f1 commit 5324b6d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Pod/Classes/Tweenable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ extension Tweenable where Self: KeyPathTweenable {
}
}

extension UIView : Tweenable {}
extension Tweenable where Self == UIView {
extension UIView : Tweenable {

public func apply(_ prop: Property) {
if let transform = prop as? Transform {
Expand Down Expand Up @@ -121,8 +120,7 @@ extension Tweenable where Self == UIView {
}
}

extension CALayer : Tweenable {}
extension Tweenable where Self == CALayer {
extension CALayer : Tweenable {

public func apply(_ prop: Property) {
// since CALayer has implicit animations when changing its properties, wrap updates in a CATransaction where animations are disabled
Expand Down

0 comments on commit 5324b6d

Please sign in to comment.