🌱 ViewModifier for Text

Source
struct Title: ViewModifier {
    let font = Font.system(.title).weight(.semibold)

    func body(content: Content) -> some View {
        content
            .foregroundColor(.blue)
            .font(font)
    }
}

extension Text {
    func titleStyle() -> some View {
        self.modifier(Title())
    }
}
Made by Brandon . If you find this project useful you can donate.