Added the "navigationTitle" property to the ContentViewModel view model in the Sample app target to update the navigation title to show the selected locale.
This commit is contained in:
@@ -97,6 +97,14 @@ extension ContentView {
|
||||
self.reporter = reporter
|
||||
self.transcriber = transcriber
|
||||
}
|
||||
|
||||
// MARK: Computed
|
||||
|
||||
/// The navigation title of ``ContentView``: the localized "Transcribe to …" filled with the name of the selected ``locale``, so
|
||||
/// the title updates on every locale change.
|
||||
var navigationTitle: LocalizedStringResource {
|
||||
.viewRecordingNavigationTitle(name(for: locale))
|
||||
}
|
||||
|
||||
// MARK: Methods
|
||||
|
||||
|
||||
Reference in New Issue
Block a user