Fixed that section title didn't get translated

This commit is contained in:
dankito 2020-09-01 15:14:18 +02:00
parent b40e865af6
commit 76a2cb0642
1 changed files with 2 additions and 2 deletions

View File

@ -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()
} }