ProductBuilder.swift 426 B

12345678910111213141516171819202122
  1. //
  2. // ProductBuilder.swift
  3. // SUIExamples
  4. //
  5. // Created by Pavel Yurchenko on 27.11.2024.
  6. //
  7. import SwiftUI
  8. struct ProductBuilder {
  9. typealias Input = ProductVM.Input
  10. typealias Output = ProductVM.Output
  11. func build(with input: Input, output: Output) -> some View {
  12. let vm = ProductVM(
  13. input: input,
  14. output: output
  15. )
  16. return ProductView().environment(vm)
  17. }
  18. }