Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add border style extension to UIView #53

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

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.

None yet

2 participants