Add View.onPreferenceChange#926
Conversation
🤖 Augment PR SummarySummary: This PR implements Changes:
Technical Notes: Preference change delivery is implemented as a transactional graph attribute that schedules the callback via 🤖 Was this summary useful? React with 👍 or 👎 |
| /// - Returns: A view that triggers `action` when the value for `key` | ||
| /// changes. | ||
| @inlinable | ||
| nonisolated public func onPreferenceChange<K>( |
There was a problem hiding this comment.
onPreferenceChange is being added as a public API, but it doesn’t appear to carry the @available(OpenSwiftUI_v1_0, *) availability annotation pattern used by other preference APIs (e.g. preference, transformPreference). Consider aligning the availability annotations to keep the public surface/versioning consistent.
Severity: low
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
15de999 to
9bbefad
Compare
Implement #925