Use like this :
struct Word { var wordId: String = UUID().uuidString private(set) var term: String = "" init (term: String) { self.term = term } }