Swift quick tips for WCSession Connectivity with Core DatasteemCreated with Sketch.

in #swift5 years ago (edited)

This isn't a beginner's tutorial. Rather if you've had Swift experience before and looking into WatchOS this may help you experiment with WCSession and Watch Connectivity (specifically updateApplicationContext) quicker. The important point is that in my example I'm using NSFetchedResultsController to bridge the WC Delegate to update my UITableView. These aren't in the same classes, this should help you with Unit Testing in the future if you keep them separate.

So if your set up contains core data and you're starting watch os this may help you.

Enjoy the video. Feedback welcome.

Sort:  

Congratulations @markwong! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

SteemFest Meet The Stemians Contest - The mysterious rule revealed
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.18
TRX 0.16
JST 0.031
BTC 62991.12
ETH 2685.43
USDT 1.00
SBD 2.55