@@ -51,6 +51,7 @@ private struct PostSettingsView: View {
51
51
var body : some View {
52
52
Form {
53
53
PostSettingsFormContentView ( viewModel: viewModel)
54
+ infoSection
54
55
}
55
56
. accessibilityIdentifier ( " post_settings_form " )
56
57
. disabled ( viewModel. isSaving)
@@ -120,6 +121,22 @@ private struct PostSettingsView: View {
120
121
. tint ( AppColor . tint)
121
122
}
122
123
}
124
+
125
+ @ViewBuilder
126
+ private var infoSection : some View {
127
+ if viewModel. lastEditedText != nil || viewModel. postID != nil {
128
+ Section {
129
+ if let postID = viewModel. postID {
130
+ SettingsRow ( Strings . postIDLabel, value: String ( postID) )
131
+ }
132
+ if let lastEditedText = viewModel. lastEditedText {
133
+ SettingsRow ( Strings . lastEditedLabel, value: lastEditedText)
134
+ }
135
+ } header: {
136
+ SectionHeader ( Strings . infoLabel)
137
+ }
138
+ }
139
+ }
123
140
}
124
141
125
142
struct PostSettingsFormContentView : View {
@@ -134,9 +151,6 @@ struct PostSettingsFormContentView: View {
134
151
generalSection
135
152
socialSharingSection
136
153
moreOptionsSection
137
- if viewModel. context != . publishing {
138
- infoSection
139
- }
140
154
}
141
155
142
156
// MARK: - "Publishing Options" Section
@@ -360,24 +374,6 @@ struct PostSettingsFormContentView: View {
360
374
Text ( Strings . stickyPostLabel)
361
375
}
362
376
}
363
-
364
- // MARK: - "Info" Section
365
-
366
- @ViewBuilder
367
- private var infoSection : some View {
368
- if viewModel. lastEditedText != nil || viewModel. postID != nil {
369
- Section {
370
- if let postID = viewModel. postID {
371
- SettingsRow ( Strings . postIDLabel, value: String ( postID) )
372
- }
373
- if let lastEditedText = viewModel. lastEditedText {
374
- SettingsRow ( Strings . lastEditedLabel, value: lastEditedText)
375
- }
376
- } header: {
377
- SectionHeader ( Strings . infoLabel)
378
- }
379
- }
380
- }
381
377
}
382
378
383
379
@MainActor
0 commit comments