Skip to content

Wrap badge example in availability check#10

Merged
timokoethe merged 1 commit into
mainfrom
fix/readme-code-snippet
Jul 4, 2026
Merged

Wrap badge example in availability check#10
timokoethe merged 1 commit into
mainfrom
fix/readme-code-snippet

Conversation

@timokoethe

Copy link
Copy Markdown
Owner

Summary

Update README badge example to guard calls with if #available(iOS 16.0, macOS 13.0, visionOS 1.0, *) { ... } so setBadge/resetBadge are only used on supported OS versions and avoid compile/runtime issues on older platforms.

Testing

Not tested.

Checklist

  • The change is focused and easy to review.
  • I ran swift test or explained why it is not applicable.
  • I considered supported platforms and API availability.
  • I added or updated documentation where needed.

Update README badge example to guard calls with if #available(iOS 16.0, macOS 13.0, visionOS 1.0, *) { ... } so setBadge/resetBadge are only used on supported OS versions and avoid compile/runtime issues on older platforms.
@timokoethe timokoethe self-assigned this Jul 4, 2026
@timokoethe timokoethe added the documentation Improvements or additions to documentation label Jul 4, 2026
@timokoethe timokoethe merged commit 0474e2f into main Jul 4, 2026
3 checks passed
@timokoethe timokoethe deleted the fix/readme-code-snippet branch July 4, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant