Remove reference to CGFloat to remove dependency on UIKit