It seems the signature of the draw function has changed, I was able to get it working by overriding the following:
override func drawText(in rect: CGRect){
}
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: