CGPoint

Swift

extension CGPoint
  • Returns a rect with margin around point (so width/height are margin*2)

    Declaration

    Swift

    func rect(withMargin margin: CGFloat) -> CGRect