Fixed that section title didn't get translated
This commit is contained in:
parent
b40e865af6
commit
76a2cb0642
|
@ -3,12 +3,12 @@ import SwiftUI
|
||||||
|
|
||||||
struct SectionWithRightAlignedEditButton<Content: View>: View {
|
struct SectionWithRightAlignedEditButton<Content: View>: View {
|
||||||
|
|
||||||
private let sectionTitle: String
|
private let sectionTitle: LocalizedStringKey
|
||||||
|
|
||||||
private let content: Content
|
private let content: Content
|
||||||
|
|
||||||
|
|
||||||
init(sectionTitle: String, @ViewBuilder content: () -> Content) {
|
init(sectionTitle: LocalizedStringKey, @ViewBuilder content: () -> Content) {
|
||||||
self.sectionTitle = sectionTitle
|
self.sectionTitle = sectionTitle
|
||||||
self.content = content()
|
self.content = content()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue