fix: Save to Collection button not responding (#1) #3
Reference in New Issue
Block a user
Delete Branch "fix/issue-1-save-to-collection"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
@Observable+@Statetracking issue where computed properties in SwiftUI view modifiers don't reliably trigger re-renders.onChangeworkaround with a local@Stateproperty (saveEnabled) updated explicitly whenselectedPredictionorsaveStatechangesFiles Changed
PlantGuide/Presentation/Scenes/Identification/IdentificationView.swift— AddedsaveEnabledstate, wired.onChangehandlers, replacedviewModel.canSaveToCollectionin button modifiersHow to Test
Fixes #1