Skip to content

Commit

Permalink
Resolve swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Nov 17, 2024
1 parent 341dd10 commit 35e550b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Sources/SpeziDevicesUI/Scanning/NearbyDeviceRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public struct NearbyDeviceRow<Label: View>: View {


#if DEBUG
#Preview {
#Preview { // swiftlint:disable:this closure_body_length
List {
NearbyDeviceRow(peripheral: MockBluetoothPeripheral(label: "MyDevice 1", state: .connecting)) {
print("Clicked")
Expand All @@ -122,7 +122,7 @@ public struct NearbyDeviceRow<Label: View>: View {
} secondaryAction: {
}

let peripheral = MockBluetoothPeripheral(label: "MyDevice 2", state: .connected)
let peripheral = MockBluetoothPeripheral(label: "MyDevice 2", state: .connected)
NearbyDeviceRow(peripheral: MockBluetoothPeripheral(label: "MyDevice 2", state: .connected)) {
print("Clicked")
} secondaryAction: {
Expand All @@ -134,9 +134,7 @@ public struct NearbyDeviceRow<Label: View>: View {
} content: {
PeripheralSecondaryLabel(peripheral)
}

}

}
}
#endif

0 comments on commit 35e550b

Please sign in to comment.