From 76a2cb06421d1e30d5d01ebb772a6527801d749c Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 1 Sep 2020 15:14:18 +0200 Subject: [PATCH] Fixed that section title didn't get translated --- .../ui/views/SectionWithRightAlignedEditButton.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/SectionWithRightAlignedEditButton.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/SectionWithRightAlignedEditButton.swift index 3863034e..7c46b4c4 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/SectionWithRightAlignedEditButton.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/SectionWithRightAlignedEditButton.swift @@ -3,12 +3,12 @@ import SwiftUI struct SectionWithRightAlignedEditButton: View { - private let sectionTitle: String + private let sectionTitle: LocalizedStringKey private let content: Content - init(sectionTitle: String, @ViewBuilder content: () -> Content) { + init(sectionTitle: LocalizedStringKey, @ViewBuilder content: () -> Content) { self.sectionTitle = sectionTitle self.content = content() }