I need to convert a Set into an array of either [AnyObject] or [String] is this possible? I know with an NSSet I can use .allObjects but there doesn't seem to be any functions for this with a native set
Just coerce directly to an Array:
let arr = Array(mySet)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With