I wish to create an array which will only hold unique instances of a struct:
var vowelSet: Set<NotificationStruct>
Here is my struct:
struct NotificationStruct{
let dateHeader: String
let sensorName: String
let message: String
let time: String
}
yet I keep getting the error: "does not conform to protocol 'Hashable'" here is what I tried:
struct NotificationStruct<T: Hashable>{