JSON Parsing With Pagination - iOS 17 - Xcode 15

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

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

  • @Kavsoft
    @Kavsoft  6 หลายเดือนก่อน +4

    For some reason, .scrollPosition() is causing stuttering on physical devices, this may be a bug, To solve this simply replace the line,
    .scrollPosition(id: $activePhotoID, anchor: .bottomTrailing)
    to this,
    .scrollPosition(id: Binding.init(get: {
    return ""
    }, set: { newValue in
    activePhotoID = newValue
    }), anchor: .bottomTrailing)

  • @milossavkovic1970
    @milossavkovic1970 6 หลายเดือนก่อน

    Awesome job!

  • @pawanpandey9257
    @pawanpandey9257 6 หลายเดือนก่อน

    Awesome job!, i am also waiting your video.👍

  • @Chainsketch
    @Chainsketch 6 หลายเดือนก่อน

    Amazing work

  • @Iosiastic
    @Iosiastic 6 หลายเดือนก่อน

    Great content 😌

  • @MegaMrGrom
    @MegaMrGrom 5 หลายเดือนก่อน

    You no need print(error.localizedDescprition) it's a bad practice, if you have an error, in console you're not able real all error message and can be confused
    And why you're not separate network layer with viewModel and View ?

  • @金珍奕
    @金珍奕 5 หลายเดือนก่อน

    I was able to learn about the functionality of scrollTargetLayout and scrollPosition. Thank you.
    I have one question, though.
    Is it okay to execute isLoading = true within the scope of a Task in the fetchPhotos function?
    I'm wondering if it's okay to manipulate something defined with @State outside of the main thread.
    I would be very happy if someone who knows could tell me.

    • @Kavsoft
      @Kavsoft  5 หลายเดือนก่อน

      Since the task is not a detached task, it’s not necessary to use MainActor, If it’s inside the detached task, then we must use MainActor.

  • @yq_dev
    @yq_dev 6 หลายเดือนก่อน

    Thank U, 👍👍👍

  • @laurentbennis
    @laurentbennis 6 หลายเดือนก่อน

    Soo Cool Ta much !

  • @JeuneCEO
    @JeuneCEO 6 หลายเดือนก่อน

    👋