Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

RootView.swift

16 lines413 Bytes

1import SwiftUI
2​
3/// Owns app-wide presentation while the injected feature root owns product navigation.
4struct RootView<Content: View>: View {
5 private let content: Content
6​
7 init(@ViewBuilder content: () -> Content) {
8 self.content = content()
9 }
10​
11 var body: some View {
12 content
13 .background(T3Colors.background.ignoresSafeArea())
14 .tint(T3Colors.accent)
15 }