mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-20 13:26:03 +00:00
Add support for iPhone 17 Series
This commit is contained in:
1 parent
92671d8983
commit
b6b11c00c0
7 files changed
+40
-40
No files matched your search
@@ -7,7 +7,7 @@
|
||||
|
||||
#if os(iOS)
|
||||
import UIKit
|
||||
import RNDeviceName
|
||||
import DeviceKit
|
||||
#endif
|
||||
|
||||
import Foundation
|
||||
@@ -59,7 +59,7 @@ public class NearbyConnectionManager: NSObject, NetServiceDelegate, InboundNearb
|
||||
#if os(macOS)
|
||||
self.deviceInfo = EndpointInfo(name: Host.current().localizedName ?? "Mac", deviceType: .computer)
|
||||
#else
|
||||
let marketingName = UIDevice.current.marketingName.withoutBracketedContent
|
||||
let marketingName = Device.current.description.withoutBracketedContent
|
||||
let isiPad = UIDevice.current.model == "iPad"
|
||||
|
||||
self.deviceInfo = EndpointInfo(name: marketingName, deviceType: isiPad ? .tablet : .phone)
|
||||
|
||||
Reference in new issue
Block a user