Add ability to set custom device name

This commit is contained in:
Leon Böttger committed 2025-12-18 20:37:44 +01:00
1 parent 8aa3341595
commit a5e1030c1f
9 files changed
+3486 -2193

No files matched your search

+8
View File
@@ -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()