SharePlay Tutorial — Share custom data between iOS and MacOS

Introduction

Final SharePlay demo application.

Preconditions

  • Mac/Macbook with macOS 12.1+ installed
  • iPhone/iPad with iOS 15.1+ installed

Project Setup

Adding the Group Activities capability.

UI Setup + Gameplay

Group Activity API

Creating a group activity.
Helper method for activating the activity.
Iterating over the activity’s sessions.
Configuring the messenger and joining the session.
Helper method for sending data.
Sending data after changing the model.

Problems & Solutions

Decoding Error

Solution

Capability Error

Solution

Conclusion

--

--

--

iOS Developer, try my very first game Ploppypop for free :) https://itunes.apple.com/app/apple-store/id1528631456

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

AirPods like Popup for wired EarPods with BrokePods Jailbreak Tweak

AirPods like Popup for wired EarPods with BrokePods Jailbreak Tweak

Continuous integration in iOS Apps — using GitLab CI

OptionSet complete guide for beginners

Flutter CI/CD with Github Actions & Fastlane — Part 2(iOS)

50 Days Swift Output Challenge

50 Days Swift Output Challenge

Throwing Computed Properties

Managing and Communicating Rapid Service Changes during COVID-19

CoolStar demonstrates sandbox escape on iOS 15.0–15.1.1 and explores the remaining jailbreak steps

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Michael Temper

Michael Temper

iOS Developer, try my very first game Ploppypop for free :) https://itunes.apple.com/app/apple-store/id1528631456

More from Medium

Remote Notification in iOS Simulator — Xcode 11.4 or later & iOS 13.4 or later

Getting your code crashed inside a Swift loop

Deploying apps to Apple’s B2B App Store.

The app store logo as displayed on an iPhone

Refactor iOS ble auto reconnect logic: From 30% CPU usage to zero CPU usage