Skip to content

Commit ff3ab28

Browse files
committed
SwiftLint
1 parent 4a037b9 commit ff3ab28

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

.swiftlint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ identifier_name:
99
excluded:
1010
- x
1111
- y
12+
13+
excluded:
14+
- Carthage
15+
- Pods

Examples/Shifty-iOSExample/View Controllers/ShiftExampleViewControllerA.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ class ShiftExampleViewControllerA: UIViewController, ShiftTransitionable {
6565
animator?.startAnimation()
6666
}
6767

68-
6968
// yellowView.shiftID = "yellow"
7069
// orangeView.shiftID = "orange"
7170
// shiftButton.actions = [.translate(byX: 0, y: 50), .fade(to: 0)]

Shifty.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@
601601
);
602602
runOnlyForDeploymentPostprocessing = 0;
603603
shellPath = /bin/sh;
604-
shellScript = "#if which swiftlint >/dev/null; then\n#swiftlint\n#else\n#echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\n#fi\n";
604+
shellScript = "if which swiftlint >/dev/null; then\nswiftlint\nelse\necho \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n";
605605
};
606606
/* End PBXShellScriptBuildPhase section */
607607

Sources/Shifty/Animators/ShiftAnimator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private extension ShiftAnimator {
5353
self?.animations(for: currentShift, with: replicant, using: destination)
5454
}
5555

56-
shiftAnimator.addCompletion { position in
56+
shiftAnimator.addCompletion { _ in
5757
currentShift.cleanup(replicant: replicant)
5858
}
5959
}

Sources/Shifty/Model/Shared/Snapshot.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public struct Snapshot: Equatable {
2525
/// The backgroundColor of the `UIView` at the time of snapshotting.
2626
let backgroundColor: UIColor?
2727

28-
/// The transform3d of the view's `CALayer` at the time of snapshotting. This property also includes any changes made to the `UIView.transform` property, as they are converted from an affine transform into a 3-dimensional `CATransform3D` when set on the view.
28+
/// The transform3d of the view's `CALayer` at the time of snapshotting. This property also includes any changes made to the `UIView.transform`
29+
/// property, as they are converted from an affine transform into a 3-dimensional `CATransform3D` when set on the view.
2930
let transform3D: CATransform3D
3031

3132
/// The corner radius of the view's `CALayer` at the time of snapshotting.

0 commit comments

Comments
 (0)