NSUbiquitousKeyValueStore or iCloud Shared UserDefaults

preview_player
Показать описание
In this video, I would like to show you how you can use NSUbiquitiousKeyValueStore to share small amounts of data in your apps across different devices using iCloud.

We will be creating a PropertyWrapper to simplify the process and look at using Notification Center so that your apps will be able to respond to changes made by another device.

If you want to support my work, you can buy me a coffee :)

******** Download my StewartLynch YouTube Channel Application - Free ***********

Table of Contents:
0:00 Introduction and Credits
3:42 Adding iCloud Capability and simple Test
8:08 Creating a Property Wrapper
13:13 Adding Codable Object Storing
17:15 Update Notifications

Starter Project Files:

Completed Project:

References mentioned in video:

Custom Property Wrappers
Introduction to Generics:

Other References:
Stewart Lynch's YouTube Channel:
Stewart Lynch on Twitter:
Рекомендации по теме
Комментарии
Автор

Detailed and helpful video. Thanks Stewart!

samuelevans
Автор

Excellent. Simplest reference to SwiftUI key value storage on the net.

likemarathisongs
Автор

Nice one Stewart, lots to digest here!

jordibruin
Автор

Hello, I am coming, great to see you and watch your video.😆

Awesome奥深
Автор

It looks like if you don’t set publisher’s object to (you set it to nil), it causes combinatorial explosion when receiving updates.

VitVids