Understanding Swift KeyPaths

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

Stewart Lynch

Stewart Lynch

Күн бұрын

Пікірлер: 31
@TuanHoang-qj3yq
@TuanHoang-qj3yq Жыл бұрын
Thank you for your dedication to providing excellent content with great clarity. I still have not clearly seen the benefit of keyPath. I have tried to use “dot notation” approach to the two practical examples and achieved the same results as with keyPath’s approach. I am sure that it is powerful but with my current limited knowledge unfortunately, I have not been able to appreciate the significant benefits of keyPath yet. 😢 I hope I soon will.
@CarterTsai-p5t
@CarterTsai-p5t Жыл бұрын
The content is always great as usual. Thank you for all your work and sharing these.
@bonnydonny
@bonnydonny Жыл бұрын
Very helpful, thanks.
@StewartLynch
@StewartLynch Жыл бұрын
Thank. Glad to offer some insights.
@andresraigoza2082
@andresraigoza2082 Жыл бұрын
Great examples, thank you so much for your work 🙂
@parietal100
@parietal100 Жыл бұрын
Great video. Learned some new techniques. Thank you.
@hunterdobb
@hunterdobb Жыл бұрын
Awesome! Love the format of these videos! Thank you 😊
@StewartLynch
@StewartLynch Жыл бұрын
Glad you enjoy them
@chesterman18g
@chesterman18g Жыл бұрын
great video Stewart!
@robertdavis7262
@robertdavis7262 Жыл бұрын
Thanks again! I've needed this one (and one on subscripts, so ditto on the request for that) for a long time.
@robertdavis7262
@robertdavis7262 Жыл бұрын
BTW, I had the same issue showing the view in the playground.
@andrejkling3886
@andrejkling3886 Жыл бұрын
Thanks a lot for SwiftUI’s examples 💫 please keep them up 🎈
@femialiu
@femialiu Жыл бұрын
Thanks a lot Mr Stewart! This series is really helpful. Any chance you'd cover Swift subscripts in one of the videos? I actually requested you cover Swift KeyPaths when you asked on Twitter, so thanks for this!
@StewartLynch
@StewartLynch Жыл бұрын
That sounds like a good topic. I will check it out.
@femialiu
@femialiu Жыл бұрын
@@StewartLynch Thanks.
@gakkieNL
@gakkieNL Жыл бұрын
Great series Stewart!
@vatanachhorn9534
@vatanachhorn9534 Жыл бұрын
Thank you!
@StewartLynch
@StewartLynch Жыл бұрын
You're welcome!
@РоманРоман-н4н
@РоманРоман-н4н 8 ай бұрын
wow, such a great job, thanks! looks like way safer js))))
@wallacewittkoff8123
@wallacewittkoff8123 Жыл бұрын
An extremely useful video. Thanks to it I (and some of your other videos, ie CoreData) I was able to figure out and now share a use case for key paths. Suppose you want a picker that will then display one total for any number of parameters in a CoreData entity. Populating an array with a struct that included a name and a keypath of type “ReferenceWritableKeyPath did the job. The structure name is used for the picker and the tag links it to variable that is used for the reducing function (in my case a static function locate in the core data properties extension. Keypaths add a whole new dimension to data manipulation where parameters can now be treated as data as well. Perhaps there is another way to do this as well. I did try use an enum and associated value constructor and a static var all cases but this did not work for me.
@StewartLynch
@StewartLynch Жыл бұрын
Thanks for sharing
@cestlacroix
@cestlacroix Жыл бұрын
Great!!!!!
@kadeus
@kadeus Жыл бұрын
Great as always my question do u have any database course Tutorial to buy or watch? Thx sir
@StewartLynch
@StewartLynch Жыл бұрын
I have a series on using Realm, kzbin.info/aero/PLBn01m5Vbs4B8xgS_iEEuJtM_3BuZ7fiV and another that uses Core Data and it starts here kzbin.info/www/bejne/pZiUg2l-fr6Ia8U
@kadeus
@kadeus Жыл бұрын
@@StewartLynch thx 🙏🏼
@AllanSpreys
@AllanSpreys Жыл бұрын
Would you recommend Core Data or Realm for a new project Stewart?
@StewartLynch
@StewartLynch Жыл бұрын
I would recommend Core Data and I would also recommend Mark Moeykens book on Core Data. www.bigmountainstudio.com/core-data/77jt8
@AllanSpreys
@AllanSpreys Жыл бұрын
@@StewartLynch thank you!
@victorriurean
@victorriurean Жыл бұрын
nice
@jidhabraham3383
@jidhabraham3383 5 ай бұрын
same
@shurale85
@shurale85 Жыл бұрын
Great content except example of wine.. as for me
Type Extensions in Swift and SwiftUI
24:02
Stewart Lynch
Рет қаралды 2,5 М.
Understanding Swift Initializers
25:39
Stewart Lynch
Рет қаралды 6 М.
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 154 МЛН
The Singing Challenge #joker #Harriet Quinn
00:35
佐助与鸣人
Рет қаралды 35 МЛН
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 14 МЛН
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 986 М.
SwiftUI PreferenceKeys
22:37
Stewart Lynch
Рет қаралды 4 М.
How Do Linux Kernel Drivers Work? - Learning Resource
17:02
LiveOverflow
Рет қаралды 557 М.
iOS 17 Data Flow with Observation Framework
28:41
Stewart Lynch
Рет қаралды 9 М.
MatchedGeometryEffect in SwiftUI
26:31
Stewart Lynch
Рет қаралды 6 М.
How to create your own structs - Swift for Complete Beginners
13:23
Swift Closures Explained
14:23
Sean Allen
Рет қаралды 67 М.
Packaging Data Using Structs in Python
18:41
NeuralNine
Рет қаралды 21 М.
Mastering SwiftLint for Code Readability
27:45
Stewart Lynch
Рет қаралды 7 М.
Writing an ITERATOR in C++
19:44
The Cherno
Рет қаралды 126 М.
Enhancements to ScrollView in iOS 17
23:43
Stewart Lynch
Рет қаралды 7 М.
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 154 МЛН