Skip to content

Commit 264a7f0

Browse files
committed
Updated PeripheralView
1 parent a958853 commit 264a7f0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/BluetoothExplorerUI/PeripheralView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct PeripheralView: View {
2424
if let scanData = store.scanResults[peripheral]?.scanData {
2525
if let manufacturerData = scanData.advertisementData.manufacturerData {
2626
VStack(alignment: .leading, spacing: 3) {
27-
Text(verbatim: manufacturerData.companyIdentifier.name ?? manufacturerData.companyIdentifier.description)
27+
Text(verbatim: manufacturerData.companyIdentifier.rawValue.description)
2828
if manufacturerData.additionalData.isEmpty == false {
2929
Text(verbatim: "0x" + manufacturerData.additionalData.toHexadecimal())
3030
}
@@ -36,7 +36,7 @@ struct PeripheralView: View {
3636
if let serviceUUIDs = scanData.advertisementData.serviceUUIDs,
3737
serviceUUIDs.isEmpty == false {
3838
VStack(alignment: .leading, spacing: 3) {
39-
Text(verbatim: ListFormatter().string(from: serviceUUIDs.map({ $0.rawValue })) ?? "")
39+
Text(verbatim: serviceUUIDs.reduce("", { $0 + ($0.isEmpty ? "" : ", ") + $1.rawValue }))
4040
Text("Service UUIDs")
4141
.font(.subheadline)
4242
.foregroundColor(.gray)

0 commit comments

Comments
 (0)