Slide 18
Slide 18 text
App code
//#-hidden-code
import PlaygroundSupport
let cloud = Shapes[5]
//#-end-hidden-code
func hasAttribute(shape: Shape, attribute: ShapeAttribute) -> Bool {
let attributes: Set = shape.attributes
return attributes.contains(attribute)
}
func Contents0102() -> Bool { return // REMOVE LINE
hasAttribute(shape: cloud, attribute: .IsGray)
} // REMOVE LINE