How to force non-optional type (for array element) on compile time in Swift?
struct MyStruct { @ArrayOfNonOptionalElements var arr: [SomeNonOptionalType] } where @ArrayOfNonOptionalElements is a propertyWrapper. So, how to force non-optionality for the type inside? Is it even possible? ???? I mean, how to implement the property wrapper in such a way, that it forces the array element type to be non-optional. arrays swift option-type property-wrapper 2