Drawing Text Die Faces
Open DieView.swift and jump to drawDieWithSize(_:). Add the following code below the block that draws the die dots. The new code will run if intValue is not in the range 1...6.
if intValue == 6 { drawDot(0, 0.5) // Mid left/right drawDot(1, 0.5) } } else { var paraStyle = NSParagraphStyle.defaultParagraphStyle().mutableCopy() as! NSMutableParagraphStyle ...
Get Cocoa Programming for OS X: The Big Nerd Ranch Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.