Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Understanding Swift KeyPaths

Автор: Stewart Lynch

Загружено: 2023-04-23

Просмотров: 5189

Описание:

In this video, I want to introduce you to KeyPaths and how you can use them in your Swift projects.

We will start by looking a what a KeyPath is and how you can use them to reference to a property of an object or a struct and then look at some examples of how you might apply them in your code.

This will include using keyPaths for sorting and mapping arrays, we will look at the DynamicMemberLookup attribute and two very practical examples for using KeyPaths to simplify your code

We will finish with a short explanation of how keyPaths are used in Lists for SwiftUI

If you want to support my work, you can buy me a coffee :)
https://ko-fi.com/stewartlynch

Table of Contents:
0:00 Introduction
1:14 The Basics
5:40 KeyPathComparator
8:22 KeyPaths for Mapping
9:46 DynamicMemberLookup
15:50 Practical Examples
22:52 KeyPaths in Swift Lists

Starter Project Files:
(If you are having problems downloading zip files, use Safari. Chrome restricts zip files by default)
https://www.createchsol.com/StarterPr...

Completed Project:
https://github.com/StewartLynch/Swift...

References mentioned in video:
What is Swift KeyPath in Swift
https://sarunw.com/posts/what-is-keyp...
How to Use DynamicMemberLookup in Swift
https://www.hackingwithswift.com/arti...
Higher order Function Videos
map, compactMap, flatMap
   • map, compactMap flatMap  
contains, forEach, Sorted
   • contains, forEach, sorted  
reduce, filter, removeAll
   • reduce, filter, removeAll  


Other References:
Stewart Lynch's YouTube Channel:
   / @stewartlynch  
Stewart Lynch on Mastodon:
https://iosdev.space/@StewartLynch
Stewart Lynch on Twitter:
  / stewartlynch  
Stewart Lynch on LinkedIn
  / stewartlynch  

Understanding Swift KeyPaths

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Type Extensions in Swift and SwiftUI

Type Extensions in Swift and SwiftUI

Understanding Swift Trailing Closure Syntax

Understanding Swift Trailing Closure Syntax

Understanding Swift Initializers

Understanding Swift Initializers

Пишем ограничитель запросов С НУЛЯ на Python + Redis

Пишем ограничитель запросов С НУЛЯ на Python + Redis

Как устроен PHP 🐘: фундаментальное знание для инженеров

Как устроен PHP 🐘: фундаментальное знание для инженеров

Введение в замыкания в Swift

Введение в замыкания в Swift

Объяснение быстрых закрытий

Объяснение быстрых закрытий

iOS 17 Data Flow with Observation Framework

iOS 17 Data Flow with Observation Framework

SwiftUI PreferenceKeys

SwiftUI PreferenceKeys

15 трлн. дефицита бюджета или остановка промышленности. Что добьет страну? Дебаты, часть 2

15 трлн. дефицита бюджета или остановка промышленности. Что добьет страну? Дебаты, часть 2

Introduction to Generics in Swift

Introduction to Generics in Swift

Custom Swift Property Wrappers

Custom Swift Property Wrappers

Фильтр, карта, сокращение, CompactMap, FlatMap — Swift — вопросы для собеседования с iOS-разработ...

Фильтр, карта, сокращение, CompactMap, FlatMap — Swift — вопросы для собеседования с iOS-разработ...

Изучите основы Swift за один час

Изучите основы Swift за один час

Вот ПОЧЕМУ у тебя не получается решать математические задачи

Вот ПОЧЕМУ у тебя не получается решать математические задачи

map, compactMap flatMap

map, compactMap flatMap

TypeScript ФУНДАМЕНТАЛЬНЫЙ КУРС от А до Я. Вся теория + практика

TypeScript ФУНДАМЕНТАЛЬНЫЙ КУРС от А до Я. Вся теория + практика

Swift Clips: Key paths and functions

Swift Clips: Key paths and functions

The Anatomy of a Key Path

The Anatomy of a Key Path

Introduction to enums in Swift

Introduction to enums in Swift

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]