File tree Expand file tree Collapse file tree
Sources/ArcGISToolkit/Components/FeatureFormView Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments