Skip to content

Commit

Permalink
changed case statement bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ioscreator committed Oct 24, 2016
1 parent 8b73b4b commit 6c6abe1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added IOS10DrawShapesTutorial/.DS_Store
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class ShapeView: UIView {

override func draw(_ rect: CGRect) {
switch currentShapeType {
case 0: drawLines()
case 1: drawRectangle()
case 0: drawRectangle()
case 1: drawLines()
case 2: drawCircle()
default: print("default")
}
Expand Down

0 comments on commit 6c6abe1

Please sign in to comment.