Skip to content

Cannot get vwt.initializeWithCopy to copy Arrays properly? #51

Discussion options

You must be logged in to vote

When I created the array I'm trying to assign to kids, it was created as [Any]. The property I'm assigning it to is of type [Person].

Solution: use swift_dynamicCast to perform the conversion :)

Edit: see Azoy's replies above; swift_dynamicCast may not be as good a choice as _openExistential

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
13 replies
@NSExceptional
Comment options

@Azoy
Comment options

Azoy May 12, 2021
Maintainer

@NSExceptional
Comment options

@Azoy
Comment options

Azoy May 13, 2021
Maintainer

@NSExceptional
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by NSExceptional
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants