Slide 71
Slide 71 text
UISegmentControl 越しに切り替えてみる
7
1
let control = UISegmentedControl(frame: .null, actions: [
.init(title: "ϖϯ", handler: { _ in
self.toolPicker.selectedTool = PKInkingTool(.pen)
}),
.init(title: "ϚʔΧʔ", handler: { _ in
self.toolPicker.selectedTool = PKInkingTool(.marker)
}),
.init(title: "Ԗච", handler: { _ in
self.toolPicker.selectedTool = PKInkingTool(.pencil)
}),
])