Skip to content

Commit 509619d

Browse files
Revert "Fix width issue in the Add Carb Entry screen"
This reverts commit a83d46d.
1 parent a83d46d commit 509619d

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

Loop/Views/CarbEntryView.swift

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)