Created
April 7, 2020 19:11
-
-
Save SwiftyAlex/b4aa8b2f007fd2c468c1b5472b69da20 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Container View | |
struct SomeView: View { | |
var body: some View { | |
VStack { | |
Text("Welcome to our SwiftUI app") | |
.companyStyled() | |
FeaturedContentView() | |
ArticlesScrollView() | |
FooterView() | |
} | |
} | |
} | |
// Extension | |
extension Text { | |
func companyStyled() -> some View { | |
self | |
.font(.custom("Montserrat-Bold", size: 16)) | |
.foregroundColor(.textBlack) | |
.padding() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment