mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-11 02:51:11 +00:00
Add ability to set custom device name
This commit is contained in:
1 parent
8aa3341595
commit
a5e1030c1f
9 files changed
+3486
-2193
No files matched your search
@@ -76,11 +76,18 @@ struct DeviceListView: View {
|
||||
|
||||
LUIText(attachments?.shortDescription ?? NearbyConnectionManager.shared.deviceInfo.name ?? "Unknown".localized(), isBold: true)
|
||||
.lineLimit(1)
|
||||
|
||||
if attachments == nil {
|
||||
Image(systemName: "pencil")
|
||||
.foregroundColor(.mainColor.opacity(0.5))
|
||||
.padding(.horizontal, -3)
|
||||
}
|
||||
}
|
||||
.padding(.horizontal, 16)
|
||||
.padding(.vertical, 6)
|
||||
.background(sheetActive ? Color.sheetForegroundColor : Color.defaultForegroundColor)
|
||||
.cornerRadius(24)
|
||||
.changeDeviceNameAlert(isEnabled: attachments == nil)
|
||||
}
|
||||
.padding(.horizontal)
|
||||
.padding(.top, 8)
|
||||
@@ -236,6 +243,7 @@ struct DeviceListView: View {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
final class DeviceListViewModel: SharedInstance {
|
||||
static var sharedInstance = DeviceListViewModel()
|
||||
|
||||
|
||||
Reference in new issue
Block a user