Skip to content

Support sizing labels accounting for their cap insets #136

Open
@NickEntin

Description

We already support aligning and distributing labels taking into account their cap insets, but sizing currently requires the entire available space. We should add equivalent APIs for sizing:

func capInsetSizeThatFits(_ size: CGSize, constraints: SizingConstraints = .none) -> CGSize

func capInsetSizeToFit(_ size: CGSize, constraints: SizingConstraints = .none)

Activity

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

Metadata

Assignees

Labels

enhancementRequest for a new feature or improvement to an existing feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions