How to use SDWebImage in SwiftUI | Swift Packages #1

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

Комментарии • 28

  • @gagnassss
    @gagnassss 8 месяцев назад

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

  • @arunmurugan5196
    @arunmurugan5196 8 месяцев назад

    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!.

  • @hakobghlijyan
    @hakobghlijyan 8 месяцев назад

    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  8 месяцев назад +1

      Those are coming to YT soon 👍

    • @hakobghlijyan
      @hakobghlijyan 8 месяцев назад

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

  • @kumarabnit3525
    @kumarabnit3525 4 месяца назад

    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 7 месяцев назад

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

  • @acmcj
    @acmcj 8 месяцев назад

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

    • @SwiftfulThinking
      @SwiftfulThinking  8 месяцев назад

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

    • @acmcj
      @acmcj 8 месяцев назад

      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  8 месяцев назад

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

    • @SwiftfulThinking
      @SwiftfulThinking  8 месяцев назад +1

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

    • @acmcj
      @acmcj 8 месяцев назад

      @@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.

  • @govind20246
    @govind20246 8 месяцев назад

    Very informative 👏 thanks

  • @mokanoir
    @mokanoir 7 месяцев назад

    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?

  • @MuhammadHuzaifa-t2s
    @MuhammadHuzaifa-t2s 8 месяцев назад

    Which macbook do you have?

  • @hackenbacker
    @hackenbacker 8 месяцев назад

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

    • @SwiftfulThinking
      @SwiftfulThinking  8 месяцев назад +3

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

    • @Designguidetv
      @Designguidetv 8 месяцев назад +1

      @@SwiftfulThinking it will be interesting to see the difference

  • @hackenbacker
    @hackenbacker 8 месяцев назад

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

  • @itsayan1616
    @itsayan1616 8 месяцев назад

    👏🙌

  • @AlbertAsadov
    @AlbertAsadov 7 месяцев назад

    thanks Nick! Please do bootcamp for UIKit !)

  • @AdamTabiev
    @AdamTabiev 8 месяцев назад

    🤯🤯

  • @911gogogo
    @911gogogo 8 месяцев назад

    Thanks Nick! BTW Can We have visionPro content please?

    • @natgenesis5038
      @natgenesis5038 8 месяцев назад +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 8 месяцев назад +1

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