// // MainVM.swift // SUIExamples // // Created by Pavel Yurchenko on 27.11.2024. // import SwiftUI typealias Action = () -> Void typealias IntAction = (Int) -> Void @Observable final class MainVM { struct Output { var onProducts: Action? var onProduct: IntAction? var onCart: Action? var onFeedback: Action? } let output: Output init(output: Output) { self.output = output } }