Skip to content

Commit

Permalink
Exclude Live Activities on Desktops
Browse files Browse the repository at this point in the history
  • Loading branch information
sieren committed Nov 16, 2023
1 parent 3012463 commit 5d00ee0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions midimittr/AppContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ class AppContext {
}

public func didBecomeActive() {
if #available(iOS 16.2, *) {
if #available(iOS 16.2, *), !ProcessInfo.processInfo.isiOSAppOnMac {
activityViewHandler.updateResources()
}
}

init() {
self.midiController = MIDIController()
self.peerTalkBridge = PeerTalkBridge(midiDelegate: self.midiController)
if #available(iOS 16.2, *) {
if #available(iOS 16.2, *), !ProcessInfo.processInfo.isiOSAppOnMac {
activityViewHandler.start()
} else {
// Fallback on earlier versions
Expand Down

0 comments on commit 5d00ee0

Please sign in to comment.