Does anyone know how you can use Realm to store an array of strings? I\'m trying to map the following response into Realm correctly:
\"zoneInfo\": {
\"ta
extension String {
func toStringObject() -> StringObject {
return StringObject(initValue: self)
}
}
extension Sequence where Iterator.Element == String {
func toStringObjects() -> List {
let list = List()
for s in self {
list.append(s.toStringObject())
}
return list
}
}
extension Int {
func toIntObject() -> IntObject {
return IntObject(initValue: self)
}
}
extension Sequence where Iterator.Element == Int {
func toIntObjects() -> List {
let list = List()
for s in self {
list.append(s.toIntObject())
}
return list
}
}