ソースを参照

Add a Swift version check across all platforms. (#3549)

Dave Verwer 3 年 前
コミット
6de3f6579b
1 ファイル変更4 行追加0 行削除
  1. 4 0
      Source/Alamofire.swift

+ 4 - 0
Source/Alamofire.swift

@@ -28,6 +28,10 @@ import Foundation
 @_exported import FoundationNetworking
 #endif
 
+#if swift(<5.3)
+#error("Alamofire doesn't support Swift versions below 5.3")
+#endif
+
 /// Reference to `Session.default` for quick bootstrapping and examples.
 public let AF = Session.default