Skip to content

Commit

Permalink
add delay modifier to Sequence animation
Browse files Browse the repository at this point in the history
  • Loading branch information
PimCoumans committed Mar 18, 2024
1 parent 4705b4a commit 27a35f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/AnimationPlanner/Animations/Group.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down
2 changes: 2 additions & 0 deletions Sources/AnimationPlanner/Protocols/AnimationModifiers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion Tests/AnimationPlannerTests/GroupTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import AnimationPlanner
import UIKit
import XCTest

class GroupTests: AnimationPlannerTests {

Expand Down Expand Up @@ -179,5 +180,4 @@ class GroupTests: AnimationPlannerTests {

}
}

}

0 comments on commit 27a35f0

Please sign in to comment.