Created
September 29, 2020 21:44
-
-
Save Thunor/95fc7d39c8e0cbf8fa3bc6862c0b3d35 to your computer and use it in GitHub Desktop.
Revisions
-
Thunor created this gist
Sep 29, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ struct MyView: View { var body: some View { VStack { Text("Hello World") } .navigationBarTitleDisplayMode(.inline) .toolbar { ToolbarItem(placement: .principal) { HStack { Image(systemName: "sun.min.fill") Text("My Title") .font(.headline) .foregroundColor(.white) } } } } }