How to use SDWebImage in SwiftUI | Swift Packages #1

  Рет қаралды 4,053

Swiftful Thinking

Swiftful Thinking

Күн бұрын

Unlock the power of SDWebImage in your SwiftUI applications with our detailed tutorial. This video will guide you through integrating SDWebImage, a popular Swift Package for asynchronous image loading and caching, into your SwiftUI projects. Learn how to seamlessly display images from the web in your apps, improving user experience and app performance. Ideal for SwiftUI developers looking to enhance their app's image handling capabilities. This tutorial is a part of our Swift Packages series, aimed at providing practical skills for utilizing essential Swift Packages in SwiftUI. Subscribe for more tutorials on Swift Packages and advanced SwiftUI techniques.
🤙 WELCOME BACK 🤙
WEBSITE: www.swiftful-thinking.com
DISCORD: / discord
GITHUB: github.com/SwiftfulThinking/
SAY THANKS: www.buymeacoffee.com/nicksarno
🤙 #KEEPGOING 🤙
0:00 SDWebImageSwiftUI
02:34 What is SDWebImage?
03:20 ReadMe
04:41 import Package
07:35 Code start
10:12 Customizing
14:02 Implementation tips
19:41 The most comm on SwiftUI image bug
22:16 Preloading
24:53 Wrapping up

Пікірлер: 28
@arunmurugan5196
@arunmurugan5196 4 ай бұрын
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 4 ай бұрын
Thanks a lot for your video Nick. With your tutorial I've solved an issue where I stuck for weeks! Great video!
@govind20246
@govind20246 4 ай бұрын
Very informative 👏 thanks
@mokanoir
@mokanoir 3 ай бұрын
Great stuff... 👍🏻 Thank you... 😊
@kumarabnit3525
@kumarabnit3525 24 күн бұрын
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?
@itsayan1616
@itsayan1616 4 ай бұрын
👏🙌
@mokanoir
@mokanoir 3 ай бұрын
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?
@AdamTabiev
@AdamTabiev 4 ай бұрын
🤯🤯
@hakobghlijyan
@hakobghlijyan 4 ай бұрын
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 4 ай бұрын
Those are coming to YT soon 👍
@hakobghlijyan
@hakobghlijyan 4 ай бұрын
@SwiftfulThinking I'll be looking forward to it. Thank you.
@acmcj
@acmcj 4 ай бұрын
Amazing video as always. Would you use this package if you’re downloading images from Firebase/Firestore?
@SwiftfulThinking
@SwiftfulThinking 4 ай бұрын
Absolutely, just need the url from where it’s saved in Storage
@acmcj
@acmcj 4 ай бұрын
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 4 ай бұрын
@@acmcj It depends on your Storage security rules. If the url is public there is no problem
@SwiftfulThinking
@SwiftfulThinking 4 ай бұрын
Otherwise I think you can use the Firebase API to get the image url first
@acmcj
@acmcj 4 ай бұрын
@@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.
@user-to7yg5wm6d
@user-to7yg5wm6d 4 ай бұрын
Which macbook do you have?
@hackenbacker
@hackenbacker 4 ай бұрын
Why did you choose SDWebImage over Kingfisher ? (Sorry. I didn't hear that. 3:09)
@SwiftfulThinking
@SwiftfulThinking 4 ай бұрын
SDWebImage seems easier to use and more performant. However, the next video is Kingfisher 😂
@Designguidetv
@Designguidetv 4 ай бұрын
@@SwiftfulThinking it will be interesting to see the difference
@AlbertAsadov
@AlbertAsadov 4 ай бұрын
thanks Nick! Please do bootcamp for UIKit !)
@hackenbacker
@hackenbacker 4 ай бұрын
SDWebImageSwiftUI has been updated to v3.0.0. I think the code has to be modified a bit. 🤔
@SwiftfulThinking
@SwiftfulThinking 4 ай бұрын
Ugh such bad timing 🤦
@911lalala
@911lalala 4 ай бұрын
Thanks Nick! BTW Can We have visionPro content please?
@natgenesis5038
@natgenesis5038 4 ай бұрын
It’s not important to learn visionPro because it’s too expensive to buy it ,so you will have very poor audience .
@ProgramJerol
@ProgramJerol 4 ай бұрын
give visionOS 2/3 years. It still is early and your audience is very limited.
How to use Kingfisher in SwiftUI | Swift Packages #2
18:16
Swiftful Thinking
Рет қаралды 3,2 М.
How to use Lottie in SwiftUI | Swift Packages #6
15:18
Swiftful Thinking
Рет қаралды 3,8 М.
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 45 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 17 МЛН
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 22 МЛН
The Biggest Issues I've Faced Web Scraping (and how to fix them)
15:03
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 35 М.
SwiftUI Drag and Drop with Transferable Custom Object
26:33
Sean Allen
Рет қаралды 20 М.
Create a weather app from scratch with this SwiftUI Crash Course
37:04
Save and cache images in a SwiftUI app | Continued Learning #27
24:04
Swiftful Thinking
Рет қаралды 12 М.
How to Use ChatGPT in Swift!
14:05
Jared Davidson
Рет қаралды 5 М.
How to Rebase Branches and When to Rebase vs Merge  | Git & Source Control #8
20:47