mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-19 12:56:06 +00:00
Fix icons for iOS 16, add support for showing tablet icon
This commit is contained in:
1 parent
46c44e800c
commit
c59321edd8
3 files changed
+16
-3
No files matched your search
@@ -94,10 +94,20 @@ public struct RemoteDeviceInfo: Codable, Identifiable, Equatable {
|
||||
switch type {
|
||||
case .computer:
|
||||
return "laptopcomputer"
|
||||
case .tablet:
|
||||
return "ipad.landscape"
|
||||
default:
|
||||
return "smartphone"
|
||||
return getSmartphoneIcon()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private func getSmartphoneIcon() -> String {
|
||||
if #available(iOS 17.0, macOS 14.0, *) {
|
||||
return "smartphone"
|
||||
}
|
||||
return "iphone"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user