Andrew Poes
Andrew Poes
Changing to as? seems to work ``` if (current as? U) != element { self.append(current) } ```
Sounds reasonable – I'll look into adding the functionality.
Thanks for getting back. It's been a while since I played around with this. I'll dig through my code samples and see if I can track it down.
Scratch previous suggestion, looks like it can be simplified: `CGFloat centerY = CGRectGetHeight(self.bounds) * 0.5 - CGRectGetHeight(layoutRect) * 0.5; glyphRect.origin.y += centerY;` Not sure what `CGPoint location = [self.layoutManager locationForGlyphAtIndex:glyphIndex];`...