mirror of
https://github.com/morgan9e/SensorReader
synced 2026-04-14 00:14:33 +09:00
.
This commit is contained in:
@@ -44,12 +44,20 @@ struct ContentView: View {
|
|||||||
}
|
}
|
||||||
Spacer()
|
Spacer()
|
||||||
} else {
|
} else {
|
||||||
List(bleManager.readings) { reading in
|
if #available(iOS 16.0, *) {
|
||||||
SensorReadingRow(reading: reading)
|
List(bleManager.readings) { reading in
|
||||||
|
SensorReadingRow(reading: reading)
|
||||||
|
}
|
||||||
|
.listStyle(.plain)
|
||||||
|
.background(Color(.systemGroupedBackground))
|
||||||
|
.scrollContentBackground(.hidden)
|
||||||
|
} else {
|
||||||
|
List(bleManager.readings) { reading in
|
||||||
|
SensorReadingRow(reading: reading)
|
||||||
|
}
|
||||||
|
.listStyle(.plain)
|
||||||
|
.background(Color(.systemGroupedBackground))
|
||||||
}
|
}
|
||||||
.listStyle(.plain)
|
|
||||||
.background(Color(.systemGroupedBackground))
|
|
||||||
.scrollContentBackground(.hidden)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start/Stop button
|
// Start/Stop button
|
||||||
|
|||||||
Reference in New Issue
Block a user