ios - How to have List<String> property? -
how have list property in realm object? want save strings same object not have related objects each having single string (which assume happens if use stringwrapper class).
you cant use list that.
list to-many relationships
however can achieve want combining strings one, separated character. use
func componentsseparatedbystring(_ separator: string) -> [anyobject]
afterwards array it.
Comments
Post a Comment