Skip to content

Commit

Permalink
Add Equatable to ConnectedDeviceSetting
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed Oct 30, 2023
1 parent 9380007 commit dc6e2bc
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

extension LibKrbn {
final class ConnectedDeviceSetting: Identifiable, ObservableObject {
final class ConnectedDeviceSetting: Identifiable, Equatable, ObservableObject {
private var didSetEnabled = false

var id = UUID()
Expand Down Expand Up @@ -344,5 +344,9 @@ extension LibKrbn {

@Published var simpleModifications: [SimpleModification] = []
@Published var fnFunctionKeys: [SimpleModification] = []

public static func == (lhs: ConnectedDeviceSetting, rhs: ConnectedDeviceSetting) -> Bool {
lhs.id == rhs.id
}
}
}

0 comments on commit dc6e2bc

Please sign in to comment.