Removing Bit Flags in Swift Option Sets

Erica Sadun: This code creates the complete .forbidAll set and then removes the local restriction. var restrictions: AVAssetReferenceRestrictions = [ .forbidAll ] restrictions .remove(.forbidLocalReferenceToLocal) Interestingly, you can also pass .forbidAll without brackets in the current version of Swift and it will compile. […] I’m told that this option set syntax works because each element of … Continue reading Removing Bit Flags in Swift Option Sets