ATSketchKit
ATSketchKit copied to clipboard
I added a Highlighter option to your tool!
Check it out! The Tools Enum: `// MARK: - Properties
public enum Tools: Int {
case finger // Finger tool not implemented
case pencil
case highlighter
case smartPencil
case eraser
}`
The beginning of touches ended:
override public func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) { if self.currentTool == .finger { return } if self.currentTool == .highlighter { opacity = 0.5 } else { opacity = 1.0 } self.printTemplateSource(self.pointsBuffer)