Currently, profile and dashboard screen titles in SwiftUI is complex, often requiring manual string concatenation or custom logic. This can lead to boilerplate code and difficulty in maintaining consistent titles across the application.
Benefits:
Reduced Code Complexity: By leveraging navigationTitle, developers can set clear and concise screen titles directly within their views. This eliminates the need for manual string manipulation and improves code readability.
Improved Maintainability: Centralizing title management with navigationTitle makes it easier to update titles throughout the app. Changes in a single location can propagate to all relevant screens.
Consistency: navigationTitle ensures consistent title formatting and styling across the app, enhancing user experience.
Acceptance Criteria:
The navigationTitle modifier should be available for all SwiftUI views that can be part of a navigation hierarchy.
The behavior of navigationTitle should be consistent across different navigation styles (e.g., navigation bar, tab bar).
Existing title management approaches (e.g., custom title views) should continue to work alongside navigationTitle for backward compatibility.
Background:
Currently, profile and dashboard screen titles in SwiftUI is complex, often requiring manual string concatenation or custom logic. This can lead to boilerplate code and difficulty in maintaining consistent titles across the application.
Benefits:
Acceptance Criteria: