Skip to content

Commit bff4221

Browse files
committed
swiftlint fix
1 parent a47dce4 commit bff4221

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/Animator/HeroCoreAnimationViewContext.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ internal class HeroCoreAnimationViewContext: HeroAnimatorViewContext {
270270
if let size = targetState.size {
271271
if targetState.useScaleBasedSizeChange ?? self.targetState.useScaleBasedSizeChange ?? false {
272272
let currentSize = snapshot.bounds.size
273-
targetState.append(.scale(x:size.width / currentSize.width,
274-
y:size.height / currentSize.height))
273+
targetState.append(.scale(x: size.width / currentSize.width,
274+
y: size.height / currentSize.height))
275275
} else {
276276
rtn["bounds.size"] = NSValue(cgSize: size)
277277
}

Sources/HeroModifier+HeroStringConvertible.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,15 @@ extension HeroModifier: HeroStringConvertible {
9898
let direction = CascadeDirection(directionString) {
9999
cascadeDirection = direction
100100
}
101-
return .cascade(delta: parameters.getDouble(0) ?? 0.02, direction: cascadeDirection, delayMatchedViews:parameters.getBool(2) ?? false)
101+
return .cascade(delta: parameters.getDouble(0) ?? 0.02, direction: cascadeDirection, delayMatchedViews: parameters.getBool(2) ?? false)
102102
case "source":
103103
if let heroID = parameters.get(0)?.name {
104104
return .source(heroID: heroID)
105105
}
106106
case "useGlobalCoordinateSpace":
107107
return .useGlobalCoordinateSpace
108108
case "ignoreSubviewModifiers":
109-
return .ignoreSubviewModifiers(recursive:parameters.getBool(0) ?? false)
109+
return .ignoreSubviewModifiers(recursive: parameters.getBool(0) ?? false)
110110
case "zPosition":
111111
if let zPosition = parameters.getCGFloat(0) {
112112
return .zPosition(zPosition)

0 commit comments

Comments
 (0)