Skip to content

fix: resolve SwiftBuddy compilation error on main#100

Merged
solderzzc merged 2 commits intomainfrom
fix/swiftbuddy-build-error
May 4, 2026
Merged

fix: resolve SwiftBuddy compilation error on main#100
solderzzc merged 2 commits intomainfrom
fix/swiftbuddy-build-error

Conversation

@solderzzc
Copy link
Copy Markdown
Member

Fixes a type inference error for the 'modelId' closure and an 'onChange' deprecation warning in SettingsView.

Copilot AI review requested due to automatic review settings May 1, 2026 17:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Resolves SwiftBuddy build issues by updating SwiftUI onChange usage to the non-deprecated closure signature and by making the modelId expression passed into buildCLICommand explicitly typed to avoid inference failures.

Changes:

  • Update onChange(of:) handler to the two-parameter closure form to address the deprecation warning.
  • Add an explicit () -> String? return type to the modelId immediate-closure expression to resolve type inference compilation errors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread SwiftBuddy/SwiftBuddy/Views/SettingsView.swift Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@solderzzc solderzzc merged commit ba50749 into main May 4, 2026
1 check passed
@solderzzc solderzzc deleted the fix/swiftbuddy-build-error branch May 4, 2026 16:37
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