Skip to content

Commit 604df92

Browse files
committed
Swift 5.8
1 parent 00ec241 commit 604df92

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ jobs:
6969
- name: Test
7070
run: swift test --skip-build
7171

72-
linux_5_7:
72+
linux_5_8:
7373
runs-on: ubuntu-latest
74-
container: swift:5.7
74+
container: swift:5.8
7575
steps:
7676
- name: Checkout
7777
uses: actions/checkout@v4

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.7
1+
// swift-tools-version:5.8
22

33
import PackageDescription
44

SwiftDraw/SVG.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131

3232
import Foundation
3333

34+
#if compiler(<5.9)
35+
#warning("SwiftDraw will soon remove support for Swift 5.8")
36+
#endif
37+
3438
#if canImport(CoreGraphics)
3539
import CoreGraphics
3640

SwiftDraw/URL+Fragment.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import Foundation
3434
extension URL {
3535

3636
var fragmentID: String? {
37-
#if compiler(>=5.7) && canImport(Darwin)
37+
#if canImport(Darwin)
3838
if #available(macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *) {
3939
return fragment(percentEncoded: false)
4040
} else {

0 commit comments

Comments
 (0)