supabase-swift icon indicating copy to clipboard operation
supabase-swift copied to clipboard

Can not create Client

Open alexschnabl opened this issue 3 years ago • 2 comments

Can't create client

Client creation like in the readme doesn't work

I am trying to create a new client to test the supabase login in my swift-ui project, however when I try to create the client with:

let client = SupabaseClient(supabaseURL: "{ Supabase URL }", supabaseKey: "{ Supabase anonymous Key }")

I get the error Cannot convert value of type 'String' to expected argument type 'URL'

When using let client = SupabaseClient(supabaseURL: URL(string: "{ Supabase URL }"), supabaseKey: "{ Supabase anonymous Key }")

I get the error No exact matches in call to initializer

Am I doing something wrong or is the readme not up to date?

Expected behavior

Create a client

System information

  • OS: macOS
  • Version of supabase-switft: 0.2.1

alexschnabl avatar May 11 '23 10:05 alexschnabl

I still get this error

arcavid avatar Oct 26 '23 02:10 arcavid

https://github.com/supabase-community/supabase-swift/blob/master/Examples/Examples/_Secrets.swift

arcavid avatar Oct 26 '23 02:10 arcavid