Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
34 changes: 16 additions & 18 deletions Examples/Examples/Profile/UserIdentityList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**.
Expand Down
Loading