ctietze, 26 days ago German @gernot @uliwitness Oh dear, didn't notice the immutability! That is awkward. You can initialize from dictionary or JSON though: https://github.com/marmelroy/PhoneNumberKit/blob/7678318c0c5b88051b9e26fd86b7af6484463339/PhoneNumberKit/PhoneNumber%2BCodable.swift Since that's possible, the same invariant protections should be available in a public initializer IMHO. PR Should be trivial
@gernot @uliwitness Oh dear, didn't notice the immutability! That is awkward.
You can initialize from dictionary or JSON though: https://github.com/marmelroy/PhoneNumberKit/blob/7678318c0c5b88051b9e26fd86b7af6484463339/PhoneNumberKit/PhoneNumber%2BCodable.swift
Since that's possible, the same invariant protections should be available in a public initializer IMHO. PR Should be trivial