View+Extension.swift 303 B

12345678910111213141516
  1. //
  2. // View+Extension.swift
  3. // Nextcloud
  4. //
  5. // Created by Marino Faggiana on 29/12/22.
  6. // Copyright © 2022 Marino Faggiana. All rights reserved.
  7. //
  8. import SwiftUI
  9. extension View {
  10. func complexModifier<V: View>(@ViewBuilder _ closure: (Self) -> V) -> some View {
  11. closure(self)
  12. }
  13. }