Skip to content

Add border style extension to UIView - #53

Open
mrylmz wants to merge 3 commits into
developfrom
feature/border-style
Open

Add border style extension to UIView#53
mrylmz wants to merge 3 commits into
developfrom
feature/border-style

Conversation

@mrylmz

@mrylmz mrylmz commented Jul 8, 2021

Copy link
Copy Markdown
Contributor

No description provided.

import Foundation
import UIKit

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

Copy link
Copy Markdown

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.

2 participants