Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Michel Slot
5,797 PointsWhy can't Swift enum have a raw type of 'Bool'.
enum Repeat : Bool{ case Monthly = true, Weekly = false }
I get the error: "Raw type 'Bool' is not convertible from any literal."
1 Answer
Matthew Nos
4,982 PointsThis article gives very clear examples and logic. http://austinzheng.com/2014/12/16/swift-enums/
Matthew Nos
4,982 PointsMatthew Nos
4,982 PointsEnums are value types that can not be given stored properties.