In this video we will continue the Rick and Morty app Swift series. Specifically we will focus on building a dedicated image loader object. Image loading is something we wants to centralize Across the project, including a caching mechanism.
💻 Source Code:
🎥 Subscribe for more:
😎 Like my teaching style? Check out some of my most popular courses!
👉🏼 Connect (personal LinkedIn)
🚀 Follow on LinkedIn
** Popular Series
Building Instagram:
Building TikTok:
SwiftUI for Beginners:
** Get Skillshare free for 2 Months and learn iOS
** Manage all your investments from app earnings on Betterment!
** Grow your own Youtube tech channel with TubeBuddy:
#swift #iOSDeveloper #BuildApp
Watch more new videos about iOS Academy | Synthesized by Mindovermetal English
I keep getting this weird error:
Performing reloadData as a fallback — Invalid update: invalid number of items in section 0. The number of items contained in an existing section after the update (40) must be equal to the number of items contained in that section before the update (20), plus or minus the number of items inserted or deleted from that section (0 inserted, 0 deleted) and plus or minus the number of items moved into or out of that section (0 moved in, 0 moved out).
And collectionView blinks when pagination/reloading occurs.
Any thoughts about what it could be?
public func configure(with viewModel: RMCharacterCellViewModel) {
nameLabel.text = viewModel.characterName
statusLabel.text = viewModel.characterStatusText
self.imageView.sd_imageIndicator = SDWebImageActivityIndicator.medium
guard let url = viewModel.characterImageURL else { return }
self.imageView.sd_setImage(with: url)
}
And also instead of using NSCache, we can use third party library called SDWebImage for handling all this stuff
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'attempt to insert item 180 into section 0, but there are only 180 items in section 0 after the update'
Will definitely start this series soon, love Rick and Morty
Afraz, you are a GEM!! These tutorials are amazing for beginners as well as intermediate iOS developers. Absolutely love your work!
What about a video of swiftui speech recognition