Slide 33
Slide 33 text
4. ΧελϜଐੑΛ࣋ͭจࣈྻͷൣғΛ୳͢
func drawInlineCode(forGlyphRange glyphsToShow: NSRange, at origin: CGPoint) {
let range = characterRange(
forGlyphRange: glyphsToShow,
actualGlyphRange: nil)
textStorage?.enumerateAttribute(
InlineCodeSample.key,
in: range,
options: []) { (color, range, _) in
// ΧελϜଐੑInlineCodeʹؔΘΔॲཧΛ࣮͢Δ
})
}
33 By Taichiro Yoshida (@dataich)