Skip to content

Commit

Permalink
Merge pull request #25 from sieren/fix-macos-crash
Browse files Browse the repository at this point in the history
Exclude Live Activities on macOS
  • Loading branch information
sieren authored Nov 16, 2023
2 parents b9b1719 + 5d00ee0 commit f4f3bb0
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 f4f3bb0

Please sign in to comment.