diff --git a/Sources/AnimationPlanner/Animations/Group.swift b/Sources/AnimationPlanner/Animations/Group.swift index e92c647..8b99c71 100644 --- a/Sources/AnimationPlanner/Animations/Group.swift +++ b/Sources/AnimationPlanner/Animations/Group.swift @@ -7,10 +7,10 @@ public struct Group: SequenceAnimatable { public var duration: TimeInterval { return longestAnimation?.duration ?? 0 } - + /// All animations added to the group public let animations: [GroupAnimatable] - + let longestAnimation: GroupAnimatable? internal init(animations: [GroupAnimatable]) { diff --git a/Sources/AnimationPlanner/Protocols/AnimationModifiers.swift b/Sources/AnimationPlanner/Protocols/AnimationModifiers.swift index 1d1967a..bb7683c 100644 --- a/Sources/AnimationPlanner/Protocols/AnimationModifiers.swift +++ b/Sources/AnimationPlanner/Protocols/AnimationModifiers.swift @@ -99,6 +99,8 @@ extension AnimateSpring: DelayModifier { } extension Extra: DelayModifier { } +extension Sequence: DelayModifier { } + /* -- Internal animation modifying convenience methods -- */ /// Convenience protocol to let structs to change properties on themself without using `mutating` diff --git a/Tests/AnimationPlannerTests/GroupTests.swift b/Tests/AnimationPlannerTests/GroupTests.swift index 504a841..a70b4f8 100644 --- a/Tests/AnimationPlannerTests/GroupTests.swift +++ b/Tests/AnimationPlannerTests/GroupTests.swift @@ -1,5 +1,6 @@ import AnimationPlanner import UIKit +import XCTest class GroupTests: AnimationPlannerTests { @@ -179,5 +180,4 @@ class GroupTests: AnimationPlannerTests { } } - }