File tree Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -47,25 +47,22 @@ struct CarbEntryView: View, HorizontalSizeClassOverride {
4747
4848 var body : some View {
4949 if isNewEntry {
50- GeometryReader { geometry in
51- NavigationView {
52- let title = NSLocalizedString ( " carb-entry-title-add " , value: " Add Carb Entry " , comment: " The title of the view controller to create a new carb entry " )
53- content
54- . navigationBarTitle ( title, displayMode: . inline)
55- . toolbar {
56- ToolbarItem ( placement: . navigationBarLeading) {
57- dismissButton
58- }
59-
60- ToolbarItem ( placement: . navigationBarTrailing) {
61- continueButton
62- }
50+ NavigationView {
51+ let title = NSLocalizedString ( " carb-entry-title-add " , value: " Add Carb Entry " , comment: " The title of the view controller to create a new carb entry " )
52+ content
53+ . navigationBarTitle ( title, displayMode: . inline)
54+ . toolbar {
55+ ToolbarItem ( placement: . navigationBarLeading) {
56+ dismissButton
6357 }
64-
65- }
66- . navigationViewStyle ( StackNavigationViewStyle ( ) )
67- . frame ( width: geometry. size. width)
58+
59+ ToolbarItem ( placement: . navigationBarTrailing) {
60+ continueButton
61+ }
62+ }
63+
6864 }
65+ . navigationViewStyle ( StackNavigationViewStyle ( ) )
6966 } else {
7067 content
7168 . toolbar {
You can’t perform that action at this time.
0 commit comments