ProductBuilder.swift 466 B

123456789101112131415161718192021222324
  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. ProductView()
  13. .environment(
  14. ProductVM(
  15. input: input,
  16. output: output
  17. )
  18. )
  19. }
  20. }