How to use SDWebImage in SwiftUI | Swift Packages #1

Поділитися
Вставка
  • Опубліковано 30 вер 2024

КОМЕНТАРІ • 28

  • @kumarabnit3525
    @kumarabnit3525 2 місяці тому

    Thank you for the video. How do we set access token as header for url which needs authentication to load image? the way we were doing in UIKit is returning 401 error?

  • @mokanoir
    @mokanoir 5 місяців тому

    I have tried to set the options for the cache to save to disk only:
    WebImage(url: URL(string: url), context: [.storeCacheType: SDImageCacheType.disk]) { image in...
    But when the app starts on the simulator, it crashes. Is there another way to disable the cache to memory so that the cash only stored on the disk?

  • @arunmurugan5196
    @arunmurugan5196 6 місяців тому

    Thank you for sharing this informative video on SwiftUI package! It's been incredibly helpful for me. I would love to see more content like this in the future. Keep up the great work!.

  • @gagnassss
    @gagnassss 6 місяців тому

    Thanks a lot for your video Nick. With your tutorial I've solved an issue where I stuck for weeks! Great video!

  • @mokanoir
    @mokanoir 5 місяців тому

    Great stuff... 👍🏻 Thank you... 😊

  • @hackenbacker
    @hackenbacker 6 місяців тому

    SDWebImageSwiftUI has been updated to v3.0.0.
    I think the code has to be modified a bit. 🤔

  • @govind20246
    @govind20246 6 місяців тому

    Very informative 👏 thanks

  • @MuhammadHuzaifa-t2s
    @MuhammadHuzaifa-t2s 6 місяців тому

    Which macbook do you have?

  • @hakobghlijyan
    @hakobghlijyan 6 місяців тому

    Hello Nick 😊. Thanks your tutorials...
    1. How register account your site?
    2. How see playlist for Git & Source Control and SwiftUI in Practice?

    • @SwiftfulThinking
      @SwiftfulThinking  6 місяців тому +1

      Those are coming to YT soon 👍

    • @hakobghlijyan
      @hakobghlijyan 6 місяців тому

      @SwiftfulThinking I'll be looking forward to it. Thank you.

  • @hackenbacker
    @hackenbacker 6 місяців тому

    Why did you choose SDWebImage over Kingfisher ?
    (Sorry. I didn't hear that. 3:09)

    • @SwiftfulThinking
      @SwiftfulThinking  6 місяців тому +3

      SDWebImage seems easier to use and more performant. However, the next video is Kingfisher 😂

    • @Designguidetv
      @Designguidetv 6 місяців тому +1

      @@SwiftfulThinking it will be interesting to see the difference

  • @itsayan1616
    @itsayan1616 6 місяців тому

    👏🙌

  • @AdamTabiev
    @AdamTabiev 6 місяців тому

    🤯🤯

  • @acmcj
    @acmcj 6 місяців тому

    Amazing video as always. Would you use this package if you’re downloading images from Firebase/Firestore?

    • @SwiftfulThinking
      @SwiftfulThinking  6 місяців тому

      Absolutely, just need the url from where it’s saved in Storage

    • @acmcj
      @acmcj 6 місяців тому

      Thanks Nick. Will try it out. Assumed there would be security/access constraints to accessing those images using one of these packages. Thank you

    • @SwiftfulThinking
      @SwiftfulThinking  6 місяців тому

      @@acmcj It depends on your Storage security rules. If the url is public there is no problem

    • @SwiftfulThinking
      @SwiftfulThinking  6 місяців тому +1

      Otherwise I think you can use the Firebase API to get the image url first

    • @acmcj
      @acmcj 6 місяців тому

      @@SwiftfulThinking yeah thought so. So really should only use these packages for public images like profile pics etc. User stored images that would be behind security rules would need to do it “manually/traditional” like you’ve shown in your other videos. Thanks.

  • @AlbertAsadov
    @AlbertAsadov 6 місяців тому

    thanks Nick! Please do bootcamp for UIKit !)

  • @911gogogo
    @911gogogo 6 місяців тому

    Thanks Nick! BTW Can We have visionPro content please?

    • @natgenesis5038
      @natgenesis5038 6 місяців тому +1

      It’s not important to learn visionPro because it’s too expensive to buy it ,so you will have very poor audience .

    • @ProgramJerol
      @ProgramJerol 6 місяців тому +1

      give visionOS 2/3 years. It still is early and your audience is very limited.