Build a Quiz App in SwiftUI and Supabase

  Рет қаралды 7,195

Jason Dubon

Jason Dubon

Күн бұрын

Пікірлер: 48
@jasondubon
@jasondubon 10 ай бұрын
Every week I'll send you an actionable email on how to become an iOS developer: www.breakintoios.com/
@tinnietv6615
@tinnietv6615 Жыл бұрын
I really enjoy someone making a video using something other than Firebase as a back end!
@jasondubon
@jasondubon Жыл бұрын
Thanks!
@Kittymemesdaily
@Kittymemesdaily Жыл бұрын
You are amazing at teaching ! Thank you for posting tutorials like this! Keep it up 👏🏼
@jasondubon
@jasondubon Жыл бұрын
Thanks!! I really appreciate the support!
@Ilya__s
@Ilya__s Жыл бұрын
Keep up the good work man, i just subbed, love the content 🔥🔥
@jasondubon
@jasondubon Жыл бұрын
Thanks!! Appreciate the support!
@oscarcano2477
@oscarcano2477 9 ай бұрын
Hi, very good tutorial !, I have an issue, I call it from other view(main menu) but I can´t pass a parameter like questionaryId to Quizmanager, how I can do that?
@FabricioMTL
@FabricioMTL 9 ай бұрын
I have a question if I want to build an quiz in superBase with a configuration of different user type app cause I don’t want to hard code The question everytime I juste want the question to be push when I upload them do you have an tuto for different user type like : admin , user for example ?
@JArmandoMP
@JArmandoMP 6 ай бұрын
Que tal Jason, he seguido los pasos para recrear tu proyecto, pero me encuentro atorado en la linea let data = response.underlyingResponse.data, por algun motivo no puedo hacer que se conecte a la base de datos, segun es por el error "Value of type 'PostgrestResponse' has no member 'underlyingResponse' soy novato en el uso del codigo, y no se como resolverlo.
@NathanBudd
@NathanBudd 11 ай бұрын
Dude, the content is A+ but the edit is a bit hard to follow At 9:00 it suddenly jumps to having added the value to the View for the preview, which took me a few re-runs to notice the difference. At 17:47 you change this to QuestionView(question: .con......) and don't show what that text is supposed to be, which breaks the preview of it. For anyone else... you need: ``` #Preview { QuestionView(question: .constant(Question(title: "In which year was the iPhone introduced?", answer: "2007", options: ["2006", "2007", "2008", "2009", "2010"]))) } ```
@jasondubon
@jasondubon 11 ай бұрын
Thanks for watching! Yeah sorry about that, my older videos were edited using a python script lol so thats kind of why it may appear jumpy
@marwaawad3677
@marwaawad3677 5 ай бұрын
thank youu!!!
@QDWorld-Apps
@QDWorld-Apps 8 ай бұрын
let data = response.underlyingResponse.data is throwing Ann error it is not working for me I followed the entire tutorial line by line it does not work
@jasondubon
@jasondubon 8 ай бұрын
Try just response.data
@jasondubon
@jasondubon Жыл бұрын
From minute 16 - 20 had some audio issues but audio is fine afterwards
@bennyscode5856
@bennyscode5856 9 ай бұрын
I cant add supabase-swift i get error supabase-swift could not be resolved
@jasondubon
@jasondubon 9 ай бұрын
restart xcode or remove and add the packages again review your packages in the project section to make sure supabase is added
@bennyscode5856
@bennyscode5856 9 ай бұрын
@@jasondubon thanks, I’ll give that a try
@bennyscode5856
@bennyscode5856 9 ай бұрын
@@jasondubon Had to update mac & xcode.
@bennyscode5856
@bennyscode5856 9 ай бұрын
@@jasondubon Had to update mac & xcode.
@dimasta4398
@dimasta4398 Жыл бұрын
thank you)
@jasondubon
@jasondubon Жыл бұрын
My pleasure!
@rparham1997
@rparham1997 Жыл бұрын
Can you drop the patreon link ?
@jasondubon
@jasondubon Жыл бұрын
Here is the link: www.patreon.com/posts/quiz-app-source-84920316
@rparham1997
@rparham1997 Жыл бұрын
I’m getting an issue. “Unable to fetch data” in the console
@jasondubon
@jasondubon Жыл бұрын
@@rparham1997 is that the error that supabase returns ?
@jasondubon
@jasondubon Жыл бұрын
@@rparham1997 what is the model you are using to decode the data ?
@jasondubon
@jasondubon Жыл бұрын
@@rparham1997 Although it looks like it might be an access thing with the setup of Supabase
@DannyBoy443
@DannyBoy443 5 ай бұрын
Why do people feel the need to show themselves on their tutorial videos? lol. We need to stop doing that.
@Travis_Chow
@Travis_Chow 11 ай бұрын
Hi Jason! Love this tutorial. However, I got hard stuck on one line of code. 28:01 see if you could help take a look 🥲 let data = response.underlyingResponse.data the "underlyingResponse.data" didn't bold like yours did, and it says "Value of type 'PostgrestResponse' has no member 'underlyingResponse'"
@jasondubon
@jasondubon 11 ай бұрын
what other options did it show ? also make sure you have .execute() at the end
@Travis_Chow
@Travis_Chow 11 ай бұрын
@@jasondubon Thanks for the reply 💪 I do have the .execute() at the end. And here's the whole chunk of code. init(){ Task{ do{ let response = try await client.database.from("quiz").select().execute() let data = response.underlyingResponse.data let decoder = JSONDecoder() decoder.keyDecodingStrategy = .convertFromSnakeCase let questions = try decoder.decode([Question].self, from: data) await MainActor.run( self.questions = questions) } catch { print("Error fetching questions") } } } when i type .execute() in the previous line, I pick the option with "async throw ProgrestResponses " However, it says async "execute(options:)" used in a context that does not support concurrency.
@jasondubon
@jasondubon 11 ай бұрын
@@Travis_Chow supabase had some updates so can you try this let questions: [Question] = try await client.database.from("quiz").select().execute().value
@jasondubon
@jasondubon 11 ай бұрын
And you have to update the Question model with the coding keys (this gets rid of the need of coverting from snake case) struct Question: Identifiable, Decodable { let id: Int let createdAt: String let title: String let answer: String let options: [String] var selection: String? enum CodingKeys: String, CodingKey { case id case createdAt = "created_at" case title case answer case options case selection } }
@jasondubon
@jasondubon 11 ай бұрын
I have a video dropping soon that should dive into these changes
Sign in with Apple using Supabase Auth | Supabase Swift Series
33:01
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 80 МЛН
Disrespect or Respect 💔❤️
00:27
Thiago Productions
Рет қаралды 36 МЛН
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 120 МЛН
Quiz App in SwiftUI and Xcode - Part 1
22:46
Nordo00
Рет қаралды 857
Master SwiftUI List Reordering: Essential Tips for Every App!
39:23
Fetch User's Step Data with HealthKit | Fitness App SwiftUI #1
25:25
The One We've All Been Sleeping On (probably)
8:18
Ben Davis
Рет қаралды 26 М.
Learn Supabase (Firebase Alternative) - Full Tutorial for Beginners
2:56:01
freeCodeCamp.org
Рет қаралды 148 М.
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 80 МЛН