Skip to content

Commit 5c76b8f

Browse files
authored
add Swift 5.6 case in swiftVersion property (#413)
1 parent 0579b19 commit 5c76b8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Packages/ClientRuntime/Sources/Util/SwiftVersion.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
//
77

88
public var swiftVersion: String {
9-
#if swift(>=5.6)
9+
#if swift(>=5.7)
1010
#error("Cannot use a version of Swift greater than available. Please create a Github issue for us to add support for the version of Swift you want to use.")
11+
#elseif swift(>=5.6)
12+
return "5.6"
1113
#elseif swift(>=5.5)
1214
return "5.5"
1315
#elseif swift(>=5.4)

0 commit comments

Comments
 (0)