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

Compilation issue in Xcode 13 beta 1 #409

Closed
ZevEisenberg opened this issue Jun 8, 2021 · 1 comment · Fixed by #411
Closed

Compilation issue in Xcode 13 beta 1 #409

ZevEisenberg opened this issue Jun 8, 2021 · 1 comment · Fixed by #411

Comments

@ZevEisenberg
Copy link
Collaborator

AdaptiveStyle.swift:

/// Enable automatic scaling of fonts obtained using `UIFontMetrics`
/// available on iOS 11+ based on the provided `textStyle` and optional
/// `maxPointSize`. If `maxPointSize` is `nil` the font will grow unbounded.
@available(iOS 11, tvOS 11, *)
case fontMetrics(textStyle: BonMotTextStyle, maxPointSize: CGFloat?)

Error:

🛑 Enum cases with associated values cannot be marked potentially unavailable with '@available'
@ZevEisenberg
Copy link
Collaborator Author

Looks like it's intentional, and this API might need a little rejiggering to make it work again 😕. Thanks to @theblixguy for digging up this link.

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 a pull request may close this issue.

1 participant