Skip to content

Commit

Permalink
Updated CentralCell
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Mar 26, 2023
1 parent e10860c commit 9a34bbb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions BluetoothExplorer.swiftpm/Views/CentralCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ struct CentralCell <Peripheral: Peer, Advertisement: AdvertisementData> : View {
nameText
.font(.title3)
.foregroundColor(.primary)
#if DEBUG
Text(verbatim: scanData.id.description)
.font(.footnote)
.foregroundColor(.secondary)
#endif
if let beacon = self.beacon {
Text("\(beacon.uuid)")
.font(.subheadline)
.foregroundColor(.primary)
Text("Major: \(beacon.major)")
Text("Major: 0x\(beacon.major.toHexadecimal())")
.font(.subheadline)
.foregroundColor(.primary)
Text("Minor: \(beacon.minor)")
Text("Minor: 0x\(beacon.minor.toHexadecimal())")
.font(.subheadline)
.foregroundColor(.primary)
Text("RSSI: \(beacon.rssi)")
.font(.subheadline)
.foregroundColor(.primary)
}
#if DEBUG
Text(verbatim: scanData.id.description)
.font(.footnote)
.foregroundColor(.secondary)
#endif
if let company = self.company, beacon == nil {
Text(verbatim: company)
.font(.subheadline)
Expand Down

0 comments on commit 9a34bbb

Please sign in to comment.