Diffable Data Source | Swift 5, Xcode 11

  Рет қаралды 13,832

Kilo Loco

Kilo Loco

Күн бұрын

Today we go over how to implement the new Diffable Data Source feature provided to us in UIKit. In this video, implement a UITableViewDiffableDataSource that works with NSDiffableDataSourceSnapshot to easily present our data in a UITableView.
Even though we are focusing on the TableView implementation, all the same steps apply for UICollectionViewDiffableDataSource.
** Show Notes and Links **
Project Files:
kilo-loco.teachable.com/cours...
Need Help?
kiloloco.com/membership
Data Structures & Algorithms Book:
store.raywenderlich.com/a/296...
More Books:
store.raywenderlich.com/a/296...
Kyle Lee on Social Media:
www.kiloloco.com
KZfaq- / kiloloco
Twitter- / kilo_loco
Instagram- / kilo_loco
--------GEAR ------
Code Passionately T-Shirt
a.co/d/53OkIu0
Laptop - 2017 MacBook Pro
amzn.to/2tk5yLr
Microphone - PowerDeWise Lavalier Microphone
amzn.to/2In9PCh
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, we’ll receive a small commission. This helps support the channel and allows us to continue to make videos like this. Thank you for the support!
#iOSDev #SwiftLang #SwiftTutorials

Пікірлер: 53
@anastasialeonteva5211
@anastasialeonteva5211 Жыл бұрын
just the best teacher I've ever met)
@thompheijffer6379
@thompheijffer6379 5 жыл бұрын
Great tutorial! Needed this one
@guryiakumari672
@guryiakumari672 3 жыл бұрын
Your sense of humor is good.God bless you.
@abdouett3676
@abdouett3676 5 жыл бұрын
Nice work kilo!
@piyushsharma1638
@piyushsharma1638 5 жыл бұрын
Amazing you explained that topic like a piece of cake, everything is clear, thanks for the video.
@MrMarchsb16
@MrMarchsb16 5 жыл бұрын
Nice tutorial Kilo. Keep it up
@StewartLynch
@StewartLynch 5 жыл бұрын
Brilliant as usual. You seem to read my mind in terms of what I need to learn next. Just enough detail and sugar coating to get me moving.
@user-yd9xy3rb4x
@user-yd9xy3rb4x 2 жыл бұрын
I feel like I'm in your shoes now.
@mukulbakshi28
@mukulbakshi28 5 жыл бұрын
@Kilo Loco just say your first talk on Paul channel ,Love it man. Love the way u presented .Love From India
@Cronay
@Cronay 4 жыл бұрын
Thank you alot, easy explanation, helped me to dive into the topic of diffable data sources.
@Kilo_Loco
@Kilo_Loco 4 жыл бұрын
Glad i could break down the topic into an easy to learn way
@Eugene.Berezin
@Eugene.Berezin 5 жыл бұрын
"Sexiest code in the world!" LOLOLOL Loved that! Totally stealing this!
@williamwildsmith5162
@williamwildsmith5162 4 жыл бұрын
Nice, thanks Kilo baby!
@user-mt1mz9og6t
@user-mt1mz9og6t 3 жыл бұрын
Thanks!
@user-zp9gd6cc7q
@user-zp9gd6cc7q 5 ай бұрын
thanks💖
@dennycad7859
@dennycad7859 2 жыл бұрын
Awesome
@MuhammadAli-zv5vz
@MuhammadAli-zv5vz 4 жыл бұрын
how i can show to differenct customcells in diferent sections like one section only have one row and second section contain 5 rows with diffable?
@johnbogil2087
@johnbogil2087 4 жыл бұрын
perfect ty
@rupeshkadam9703
@rupeshkadam9703 3 жыл бұрын
how to cast multiple sections with different data
@nurlanakylbekov7266
@nurlanakylbekov7266 3 жыл бұрын
Hi, have you found solution for that?
@djk12587
@djk12587 5 жыл бұрын
omg, i wish this was available on iOS < 13.0
@swiftlandacademy3193
@swiftlandacademy3193 4 жыл бұрын
Dammit ... That's a really sexy code man 😄.. Many Tkx Kyle
@mukulbakshi28
@mukulbakshi28 5 жыл бұрын
Love your Lesson , very knowledgable. How we can implement dynamic section like we have rows equal to array size or items in array . I want to implement dynamic sections?
@StefanBlosDev
@StefanBlosDev 5 жыл бұрын
Great video. Very well explained and easy to follow, keep up the great work! :) Just a note: typealiases are cool but some people might get confused what it means inside of the code. But yet again, I'm german so what do I know about sexy and fun, right? :)
@SenthilKumar-fp9jk
@SenthilKumar-fp9jk 4 жыл бұрын
This is pretty simple
@Kilo_Loco
@Kilo_Loco 4 жыл бұрын
Yea, the new API is very nice. too bad that UIKit is being phased out by SwiftUI. This could have been so helpful if it was released years ago
@98falcon
@98falcon 5 жыл бұрын
what would be the cons and pros comparing with the old method? Thanks
@swiftcompanion
@swiftcompanion 4 жыл бұрын
Thank you for the video! I am wondering, do I need to initialize snapshot every time I want to apply changes? Or I can initialize it once and just call snapshot.appedItems + dataSource.apply?
@Kilo_Loco
@Kilo_Loco 4 жыл бұрын
Yes, I believe that you need to create a new snapshot everytime but I havent tried to use the same snapshot
@dsuniverse132
@dsuniverse132 5 жыл бұрын
@kilo Loco . What URL should i use when signing up for adsense for my xcode app? My Bundle identifier?
@shaktiprakash
@shaktiprakash 5 жыл бұрын
Nice one ☝ how you created auto generated code when you type q1, q12 like this
@xfabiosoft
@xfabiosoft 5 жыл бұрын
checkout xcode snippets
@iQQator
@iQQator 4 жыл бұрын
How to reload section in UICollectionView with DiffableDataSource, remove all and add new data ?))))
@UshasreeKondapi
@UshasreeKondapi 5 жыл бұрын
all the names you used are the first names of fellow youtubers.... nice coincidence Kyle (Kilo Loco) Paul Hudson Sean Allen Mark Moeykens Mayank Gupta Scott Smith
@Kilo_Loco
@Kilo_Loco 5 жыл бұрын
You forgot Marc Aupont
@user-iv8ci1ml4q
@user-iv8ci1ml4q 5 жыл бұрын
You forgot Swiftbook
@UshasreeKondapi
@UshasreeKondapi 5 жыл бұрын
@@Kilo_Loco wow, I don't know him, is he the Haitian from NY, the new... HaiTech Tutorials... nice to hear from you kyle... I love your natural teaching style...👍
@UshasreeKondapi
@UshasreeKondapi 5 жыл бұрын
@@Kilo_Loco that also, shows how much your respect iOS community, fellows.. great...
@rasheshbosamiya1482
@rasheshbosamiya1482 4 жыл бұрын
how can I update the value of dataSource object and reload particular row?
@nurlanakylbekov7266
@nurlanakylbekov7266 3 жыл бұрын
How can I handle for example 2 sections and 2 different data source? If I have User2 object
@GulamALI-ni4ot
@GulamALI-ni4ot 4 жыл бұрын
suppose I have to use this (diffableDataSource) with making server requests and I have created my model which conforms to decodable protocol, now I want to populate the data using that model but diffabledata source needs the model to be of hashable type. How could we handle this situation ?
@jeraldo4571
@jeraldo4571 3 жыл бұрын
Make your model conform to Hashable.
@maqusss
@maqusss 3 жыл бұрын
Butter face view controller, lol xD
@hectorsvill
@hectorsvill 4 жыл бұрын
😁
@tenminutetokyo2643
@tenminutetokyo2643 4 жыл бұрын
DOOD!
@colinmcmahon5829
@colinmcmahon5829 4 жыл бұрын
Canadiana: I’ll fink to Rats
@MuhammadAli-zv5vz
@MuhammadAli-zv5vz 5 жыл бұрын
wow how much ios development world change 🥺🥺🥺🥺 i am still dn't look up the swiftui .How you mange your time ? i am on job and can't mange my time for learning
@avazbekolimov5739
@avazbekolimov5739 Жыл бұрын
please can you share your source code?
@user-xv2bb6ev7b
@user-xv2bb6ev7b 4 жыл бұрын
it was really inconsiderate from you to pull out such a video with no project setup. the video from the first second itself carries no educational sense since the alert thing is not shown, and considering the beginner audience, for the most part, makes it just flagrant.
Start Using Lazy | Swift 5, Xcode 10
14:00
Kilo Loco
Рет қаралды 12 М.
Use Closures Not Delegates | Swift 5, Xcode 10
14:52
Kilo Loco
Рет қаралды 24 М.
Heartwarming: Stranger Saves Puppy from Hot Car #shorts
00:22
Fabiosa Best Lifehacks
Рет қаралды 21 МЛН
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 49 МЛН
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,7 МЛН
ЗАБУДЬ про DATASOURCE
44:57
Сергей Горбачёв / cmd+B, cmd+R
Рет қаралды 2,5 М.
Diffable Data Source (Swift 5, Xcode 12, TableView) - iOS 2020
16:54
Laid Off, AI is Coming
13:06
Kilo Loco
Рет қаралды 3,4 М.
Sign In With Apple [UIKit] | Swift 5, Xcode 11
22:35
Kilo Loco
Рет қаралды 25 М.
Diffable Data Source in Multiple Section App (Swift 5)
18:42
SwiftBook
Рет қаралды 10 М.
Hashable & Equatable in Swift 5 (Xcode 11, 2020) - iOS
18:38
iOS Academy
Рет қаралды 13 М.
Heartwarming: Stranger Saves Puppy from Hot Car #shorts
00:22
Fabiosa Best Lifehacks
Рет қаралды 21 МЛН