import Foundation import SwiftUI public extension Binding { func withSetter(_ setter: @escaping (Value) -> Void) -> Binding { Binding { wrappedValue } set: { [setter] newValue, _ in setter(newValue) } } }