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

Cleaning up warnings in Demo app #1979

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

mischreiber
Copy link
Contributor

@mischreiber mischreiber commented Feb 23, 2024

Platforms Impacted

  • iOS
  • visionOS
  • macOS

Description of changes

Cleaning up existing warnings in the Demo app, and adding warnings-as-errors to catch any future ones that come up.

Changes:

  • Removed unneeded deprecated override of prepareForInterfaceBuilder(), since DemoControllerScrollView is not used in Interface Builder anymore.
  • Copied and used implementation of onChange_iOS17() to silence cross-version warnings (it's deprecated in visionOS 1.0, but the new version is not available on iOS 15).
  • Enabled Objective-C and Swift warnings as errors in Demo app target.

Binary change

n/a - no changes to library

Verification

  • Verified that the removed prepareForInterfaceBuilder() was never invoked in iOS or visionOS before removing.
  • Ensured that theme changing still worked as expected.

Pull request checklist

This PR has considered:

  • Light and Dark appearances
  • iOS supported versions (all major versions greater than or equal current target deployment version)
  • VoiceOver and Keyboard Accessibility
  • Internationalization and Right to Left layouts
  • Different resolutions (1x, 2x, 3x)
  • Size classes and window sizes (iPhone vs iPad, notched devices, multitasking, different window sizes, etc)
  • iPad Pointer interaction
  • SwiftUI consumption (validation or new demo scenarios needed)
  • Objective-C exposure (provide it only if needed)
Microsoft Reviewers: Open in CodeFlow

@mischreiber mischreiber requested a review from a team as a code owner February 23, 2024 21:00
@mischreiber mischreiber enabled auto-merge (squash) February 23, 2024 21:00
@mischreiber mischreiber merged commit 1ec3c51 into microsoft:main Feb 23, 2024
7 checks passed
@mischreiber mischreiber deleted the demoWarnings branch February 26, 2024 22:06
@mischreiber mischreiber mentioned this pull request Mar 6, 2024
12 tasks
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