diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 006d6318e..dc8b8ba1e 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -40,7 +40,7 @@ body: attributes: label: Swift Version description: What version of Swift are you using? - placeholder: ex. 5.10 + placeholder: ex. 6.1 validations: required: true diff --git a/AGENTS.md b/AGENTS.md index 9f91dcc73..d79291b06 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -23,8 +23,8 @@ This is the official Supabase SDK for Swift, mirroring the design of supabase-js ### Requirements -- Xcode 15.3+ (supports versions eligible for App Store submission) -- Swift 5.10+ +- Xcode 16.3+ (supports versions eligible for App Store submission) +- Swift 6.1+ - Supported platforms: iOS 13.0+, macOS 10.15+, tvOS 13+, watchOS 6+, visionOS 1+ - Linux is supported for building but not officially supported for production use diff --git a/Examples/Examples/Profile/UserIdentityList.swift b/Examples/Examples/Profile/UserIdentityList.swift index 7635b6bd9..f7346fdce 100644 --- a/Examples/Examples/Profile/UserIdentityList.swift +++ b/Examples/Examples/Profile/UserIdentityList.swift @@ -237,30 +237,28 @@ struct UserIdentityList: View { } .id(id) .navigationTitle("Linked Identities") - #if swift(>=5.10) - .toolbar { - ToolbarItem(placement: .primaryAction) { - if !providers.isEmpty { - Menu { - ForEach(providers) { provider in - Button { - Task { - await linkProvider(provider) - } - } label: { - Label( - provider.rawValue.capitalized, - systemImage: iconForProvider(provider.rawValue) - ) + .toolbar { + ToolbarItem(placement: .primaryAction) { + if !providers.isEmpty { + Menu { + ForEach(providers) { provider in + Button { + Task { + await linkProvider(provider) } + } label: { + Label( + provider.rawValue.capitalized, + systemImage: iconForProvider(provider.rawValue) + ) } - } label: { - Label("Link Account", systemImage: "plus") } + } label: { + Label("Link Account", systemImage: "plus") } } } - #endif + } } private func iconForProvider(_ provider: String) -> String { diff --git a/Package.swift b/Package.swift index 86bffd635..de013ce68 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.10 +// swift-tools-version:6.1 // The swift-tools-version declares the minimum version of Swift required to build this package. import Foundation diff --git a/README.md b/README.md index 57a9f03e0..f52d14060 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,8 @@ Supabase SDK for Swift. Mirrors the design of [supabase-js](https://github.com/s ### Requirements - iOS 13.0+ / macOS 10.15+ / tvOS 13+ / watchOS 6+ / visionOS 1+ -- Xcode 15.3+ -- Swift 5.10+ +- Xcode 16.3+ +- Swift 6.1+ > [!IMPORTANT] > Check the [Support Policy](#support-policy) to learn when dropping Xcode, Swift, and platform versions will not be considered a **breaking change**.