How to Make a Card View in SwiftUI - Step by Step for Beginners (2023)

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 พ.ย. 2024

ความคิดเห็น • 34

  • @DailyDoseof-Health
    @DailyDoseof-Health ปีที่แล้ว +1

    Thank you for the great work. Looking forward to more tutorials.

  • @PhilosoBot
    @PhilosoBot ปีที่แล้ว +1

    So good to see you making videos again! I wondered what happened to your old ones, I really missed them.

    • @a_swiftly_tilting_planet
      @a_swiftly_tilting_planet  ปีที่แล้ว +2

      Yeah, I needed to take a break for a while but now I’m working on putting together some new tutorials and Swift developer related videos.

  • @androidfanatic6528
    @androidfanatic6528 ปีที่แล้ว +1

    Great video and tutorial, thank you. The "Bob Ross" of SwiftUI development. Subbed!

  • @zurvey
    @zurvey ปีที่แล้ว +3

    This is my first video I've seen from you. I liked and subscribed. BTW, thank you for starting by showing us the finished product. I wish everyone would do that; it is easier to follow a video when you know what its purpose is. Thanks for making and posting this.

    • @a_swiftly_tilting_planet
      @a_swiftly_tilting_planet  ปีที่แล้ว

      Thank you.
      I agree it’s nice to see the finished product before you start diving into the code.

  • @w0mblemania
    @w0mblemania 4 หลายเดือนก่อน +1

    Nice work.

  • @werderdoc8618
    @werderdoc8618 ปีที่แล้ว +1

    Great video. Thanks very much for this. For me as a very new beginner concerning SwiftUI programming, it was a great introduction.
    Thanks again...

  • @MJXed
    @MJXed ปีที่แล้ว +1

    I love the content I will use it in my next SwiftUI project, keep it up 🎉

  • @tahmidakter2034
    @tahmidakter2034 ปีที่แล้ว +2

    Very intuitive video. I am a react developer. Coming from a react background I can relate a lot of comparative thing with swiftui still I am new in swiftUi. Learned a lot of things in this video. Hope to see more of your video. Thanks 😉

    • @a_swiftly_tilting_planet
      @a_swiftly_tilting_planet  ปีที่แล้ว

      Glad to hear this was helpful. My next video coming out soon will be about integrating a searchable map view, so that should be fun.
      Just out of curiosity, are you learning SwiftUI for side projects or are you looking to get into mobile development as well as web development?

    • @tahmidakter2034
      @tahmidakter2034 ปีที่แล้ว +1

      @@a_swiftly_tilting_planetWill be waiting for the next video. My childhood dream is to become a great developer. Since childhood, I was fascinated by the android & ios system. That time I was a kid. So, didn't know how apps work and how an app gets created. After knowing about these development path, I've learned programming all by myself and till this day, I am trying to learn how to make IOS & android app. Swiftui seems pretty fun. It would be great If you could give me some tips on roadmap.

    • @a_swiftly_tilting_planet
      @a_swiftly_tilting_planet  ปีที่แล้ว

      I’ll work on a roadmap and/or Swift resource video.

    • @tahmidakter2034
      @tahmidakter2034 ปีที่แล้ว +1

      @@a_swiftly_tilting_planet I will be waiting for your video. You can consider me as your student 😀

  • @Nature-cl4kb
    @Nature-cl4kb ปีที่แล้ว +1

    thank you!

  • @QDWorld-Apps
    @QDWorld-Apps ปีที่แล้ว

    Fantastic video … can you please let me know how to change the background colour of the cards to dark grey or something. When I change the colour in the PersonCardView .background (Color.gray) it is not working please help

    • @a_swiftly_tilting_planet
      @a_swiftly_tilting_planet  ปีที่แล้ว

      Use a ternary operator like this.
      www.hackingwithswift.com/books/ios-swiftui/conditional-modifiers

  • @BradCaldwellAuburn
    @BradCaldwellAuburn 10 หลายเดือนก่อน

    So let's say your List will contain a potentially endless number of CardViews (like FB or Twitter), and you don't want performance issues. I hear List is lazy at least for iPhones. So would it only load as needed for screen and a little extra if your database has say 1,000 cards available if the user scrolled far enough down, or would it load all the cards and nearly crash the app?

    • @a_swiftly_tilting_planet
      @a_swiftly_tilting_planet  9 หลายเดือนก่อน

      I apologize for the delayed response. I will need to delve deeper into this myself. In the meantime, I came across a video directly from Apple discussing SwiftUI performance.
      Demystify SwiftUI performance: developer.apple.com/videos/play/wwdc2023/10160/

  • @MarkDog0410
    @MarkDog0410 ปีที่แล้ว +5

    very good video, but you need to speak louder
    .

    • @a_swiftly_tilting_planet
      @a_swiftly_tilting_planet  ปีที่แล้ว +1

      Glad you enjoyed the video. I am working on improving my audio. Just posted a new video yesterday. Let me know if the audio is better in that one.

    • @MarkDog0410
      @MarkDog0410 ปีที่แล้ว +1

      @@a_swiftly_tilting_planet that’s awesome , thanks your video to improve our skills.

    • @a_swiftly_tilting_planet
      @a_swiftly_tilting_planet  ปีที่แล้ว

      No worries. I hope to have another video out this afternoon or tomorrow.

  • @محمدبنسراجالدين
    @محمدبنسراجالدين ปีที่แล้ว

    When tapping any button the whole card gets selected and all buttons get triggered..did try using the buttons? Am I doing something wrong?

    • @a_swiftly_tilting_planet
      @a_swiftly_tilting_planet  ปีที่แล้ว

      Good catch. Sorry about that.
      Here is the fix:
      PersonCardView(person: person1)
      .listRowSeparator(.hidden)
      .buttonStyle(.plain)

    • @محمدبنسراجالدين
      @محمدبنسراجالدين ปีที่แล้ว +1

      @@a_swiftly_tilting_planet Good fix 👍. this fix solves a big problem, which is: when using the new NavigationSplitView you must have a list as the sidebar view..otherwise no pushing and popping happens when views are collapsed (ex. all iPhones in portrait)

  • @maverickchan9552
    @maverickchan9552 ปีที่แล้ว +2

    why are you wispering .... just kidding...