Skip to content

Replace ObservableObject with Observable macro for PillButtonViewModel#2222

Merged
laminesm merged 1 commit intomainfrom
user/laminemale/use-observable-macro
Oct 20, 2025
Merged

Replace ObservableObject with Observable macro for PillButtonViewModel#2222
laminesm merged 1 commit intomainfrom
user/laminemale/use-observable-macro

Conversation

@laminesm
Copy link
Copy Markdown
Contributor

@laminesm laminesm commented Oct 20, 2025

Platforms Impacted

  • iOS
  • visionOS
  • macOS

Description of changes

With iOS 16 support in fluent dropped, we should be using @Observable macro instead of ObservableObject. This PR makes that change for the PillButtonViewModel.

Binary change

(how is our binary size impacted -- see https://github.com/microsoft/fluentui-apple/wiki/Size-Comparison)

Verification

No functionality changes, pill button bar demo works as expected.

Visual Verification
Before After
Screenshot or description before this change Screenshot or description with this change

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

@laminesm laminesm requested a review from a team as a code owner October 20, 2025 18:08
@laminesm laminesm merged commit c536636 into main Oct 20, 2025
10 checks passed
@laminesm laminesm deleted the user/laminemale/use-observable-macro branch October 20, 2025 21:25
@joannaquu joannaquu mentioned this pull request Oct 23, 2025
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.

3 participants