Skip to content

Commit b5610dc

Browse files
committed
Fix navigation title bug.
1 parent bf87738 commit b5610dc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Sources/ArcGISToolkit/Components/FeatureFormView/EmbeddedFeatureFormViewModel.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ final class EmbeddedFeatureFormViewModel {
4747
var previouslyFocusedElements = [FormElement]()
4848

4949
/// The title of the feature form view.
50-
var title = ""
50+
var title: String
5151

5252
/// The list of visible form elements.
5353
var visibleElements: [FormElement] {
@@ -86,6 +86,10 @@ final class EmbeddedFeatureFormViewModel {
8686
/// - Parameter featureForm: The feature form defining the editing experience.
8787
public init(featureForm: FeatureForm) {
8888
self.featureForm = featureForm
89+
// Prevents a bug where the view's navigation title won't always appear
90+
// when the view is shown in an inspector.
91+
self.title = featureForm.title
92+
8993
evaluateExpressions()
9094
monitorEdits()
9195
monitorVisibility()

0 commit comments

Comments
 (0)