Showing 2 of 11 total issues
Function step
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private func step() {
let a = animations[cursor]
let completion: Animation.Completion = { finished in
a.completion?(finished)
guard self.cursor + 1 < self.animations.count, !self.needsToCancel else {
Function with
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
animations: Animations? = nil,
delay: TimeInterval? = nil,
duration: TimeInterval? = nil,
type: AnimationType? = nil,
completion: Completion? = nil) -> Animation {