Skip to content

Commit 0b6f1ca

Browse files
authored
Swift 5.2 Fix (#293)
1 parent 60bd928 commit 0b6f1ca

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Sources/SnapshotTesting/Snapshotting/UIView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ extension Snapshotting where Value == UIView, Format == UIImage {
3636

3737
extension Snapshotting where Value == UIView, Format == String {
3838
/// A snapshot strategy for comparing views based on a recursive description of their properties and hierarchies.
39-
public static let recursiveDescription = Snapshotting<UIView, String>.recursiveDescription()
39+
public static var recursiveDescription: Snapshotting {
40+
return Snapshotting.recursiveDescription()
41+
}
4042

4143
/// A snapshot strategy for comparing views based on a recursive description of their properties and hierarchies.
4244
public static func recursiveDescription(

Sources/SnapshotTesting/Snapshotting/UIViewController.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ extension Snapshotting where Value == UIViewController, Format == String {
7878
}
7979

8080
/// A snapshot strategy for comparing view controller views based on a recursive description of their properties and hierarchies.
81-
public static let recursiveDescription = Snapshotting.recursiveDescription()
81+
public static var recursiveDescription: Snapshotting {
82+
return Snapshotting.recursiveDescription()
83+
}
8284

8385
/// A snapshot strategy for comparing view controller views based on a recursive description of their properties and hierarchies.
8486
///

0 commit comments

Comments
 (0)