Skip to content

feat: add iOS 18 patterns for ScaledFont and WebView - #24

Open
EslamAbotaleb wants to merge 1 commit into
twostraws:mainfrom
EslamAbotaleb:ios18-scaledFont-webView-patterns
Open

feat: add iOS 18 patterns for ScaledFont and WebView#24
EslamAbotaleb wants to merge 1 commit into
twostraws:mainfrom
EslamAbotaleb:ios18-scaledFont-webView-patterns

Conversation

@EslamAbotaleb

Copy link
Copy Markdown
  • accessibility.md: replace vague @ScaledMetric mention with a full ScaledSystemFont ViewModifier implementation that scales with Dynamic Type on iOS 14+, mirroring the iOS 26 .font(.body.scaled(by:)) API so call sites stay identical when migrating.

  • api.md: replace iOS-26-only WebView note with a cross-version wrapper that uses SwiftUI.WebView on iOS 26+ and falls back to WKWebView UIViewRepresentable on iOS 18–25, with a single unified call site.

- accessibility.md: replace vague @ScaledMetric mention with a full
  ScaledSystemFont ViewModifier implementation that scales with Dynamic
  Type on iOS 14+, mirroring the iOS 26 .font(.body.scaled(by:)) API
  so call sites stay identical when migrating.

- api.md: replace iOS-26-only WebView note with a cross-version wrapper
  that uses SwiftUI.WebView on iOS 26+ and falls back to WKWebView
  UIViewRepresentable on iOS 18–25, with a single unified call site.
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