Following the wonderful post about IBInspectable / IBDesignable, I am reading the example code and can't understand how function drawRect contains another functions. Can somebody explain?
override func drawRect(rect: CGRect) {
....
func rectForPosition(position: CGPoint, andSize size: CGSize) -> CGRect
{
....
}
....
}