Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: Make Swift client initialization variable consistent (#37838)

Chris Chinchilla20d228915465
diff --git a/apps/docs/spec/supabase_swift_v1.yml b/apps/docs/spec/supabase_swift_v1.yml
index e88c32c51ec..f8d4b851d78 100644
--- a/apps/docs/spec/supabase_swift_v1.yml
+++ b/apps/docs/spec/supabase_swift_v1.yml
@@ -25,13 +25,13 @@ functions:
name: Initialize Client
code: |
```swift
- let client = SupabaseClient(supabaseURL: URL(string: "https://xyzcompany.supabase.co")!, supabaseKey: "public-anon-key")
+ let supabase = SupabaseClient(supabaseURL: URL(string: "https://xyzcompany.supabase.co")!, supabaseKey: "public-anon-key")
```
- id: initialize-client-custom-options
name: Initialize Client with custom options
code: |
```swift
- let client = SupabaseClient(
+ let supabase = SupabaseClient(
supabaseURL: URL(string: "https://xyzcompany.supabase.co")!,
supabaseKey: "public-anon-key",
options: SupabaseClientOptions(
diff --git a/apps/docs/spec/supabase_swift_v2.yml b/apps/docs/spec/supabase_swift_v2.yml
index 4c83fb45c73..64c83d73331 100644
--- a/apps/docs/spec/supabase_swift_v2.yml
+++ b/apps/docs/spec/supabase_swift_v2.yml
@@ -27,7 +27,7 @@ functions:
```swift
import Supabase
- let client = SupabaseClient(supabaseURL: URL(string: "https://xyzcompany.supabase.co")!, supabaseKey: "public-anon-key")
+ let supabase = SupabaseClient(supabaseURL: URL(string: "https://xyzcompany.supabase.co")!, supabaseKey: "public-anon-key")
```
- id: initialize-client-custom-options
name: Initialize Client with custom options
@@ -35,7 +35,7 @@ functions:
```swift
import Supabase
- let client = SupabaseClient(
+ let supabase = SupabaseClient(
supabaseURL: URL(string: "https://xyzcompany.supabase.co")!,
supabaseKey: "public-anon-key",
options: SupabaseClientOptions(
@@ -65,7 +65,7 @@ functions:
}
}
- let client = SupabaseClient(
+ let supabase = SupabaseClient(
supabaseURL: URL(string: "https://xyzcompany.supabase.co")!,
supabaseKey: "public-anon-key",
options: SupabaseClientOptions(