-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using Spotify on different device no longer changes output to Safari,…
… general fixes
- Loading branch information
Showing
9 changed files
with
116 additions
and
30 deletions.
There are no files selected for viewing
6 changes: 0 additions & 6 deletions
6
App/Spotify Spatial Audio/Preview Content/Preview Assets.xcassets/Contents.json
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// Bluetooth.swift | ||
// | ||
// Created by Dervex with <3 on 12/09/2023. | ||
// | ||
|
||
import Foundation | ||
import IOBluetooth | ||
|
||
struct Bluetooth { | ||
static func isUsingSupportedDevice() -> Bool { | ||
guard let devices = IOBluetoothDevice.pairedDevices() else { | ||
return false | ||
} | ||
|
||
for item in devices { | ||
if let device = item as? IOBluetoothDevice { | ||
if device.isConnected() && SUPPORTED_DEVICES.contains(device.name) { | ||
return true | ||
} | ||
} | ||
} | ||
|
||
return false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters