Skip to content

Collection properties of genericsable classes also forced to use protocol #1

Description

@nicked

Hi, thanks for the code, this could be really helpful!

I'm having a problem using Genericsable on classes which contain collection properties.

Say your MyClass example had another property, an NSArray called myArray. When I compile that, Xcode insists that any objects inside [MyClass myArray] also needs to be of type MyClass. Does this work for you?

Also, in your example you have an NSArray<NSString> -- how do you genericise NSString or any built-in class?

Cheers,
Nick

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions