Skip to content

Conversation

@mrylmz
Copy link
Contributor

@mrylmz mrylmz commented Jul 8, 2021

No description provided.

import Foundation
import UIKit

/// An enumeration to describe differnt types of `Radius`.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Radius would be better called BorderRadius: it is definitely tied to the specific use-case of view-borders because of the circular case, which doesn't make sense in a general setting. Radius seems to be a too general name here.

Optionally, and maybe more sensible, Radius could be a subtype of BorderStyle.

Then you could also change the doc comment to: An enumeration describing different kinds of border radii.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants