Skip to content

Multiply Many and Tags

Compare
Choose a tag to compare
@ivlevAstef ivlevAstef released this 28 Nov 04:24
· 258 commits to master since this release

Now you can write:

// this it object meet two tags at the same time (and type :)
let obj: YourClass = by(tag: YourTag1.self, by(tag: YourTag2.self, on: *container))
let obj: YourClass = by(tags: YourTag1.self, YourTag2.self, on: *container)

// this is all the objects satisfying the tag (and type :)
let obj: [YourClass] = many(by(tag: YourTag1.self, on: *container))