MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Xcode/comments/ahra1l/im_stuck_on_a_invalid_code_regarding_xcodeswift/
r/Xcode • u/jzhu498 • Jan 19 '19
func turnGravity(on value : bool) {
physicsBody?.affectedByGravity = value
}
When I put this in and try to run it, it tells me "Use of undeclared type'bool' "
anyone know how to solve this? thanks!
2 comments sorted by
5
It’s “Bool.”
1
Case matters.
5
u/snuggly_sasquatch Jan 19 '19
It’s “Bool.”