From 243b058163eda025a455a325697307dce13810fe Mon Sep 17 00:00:00 2001 From: Alessandro Bortoluzzi Date: Mon, 2 Dec 2024 14:22:36 +0100 Subject: [PATCH] Revert to LocalizedStringKey --- Sources/OnboardingKit/OnboardingRow.swift | 8 ++++---- Sources/OnboardingKit/OnboardingView.swift | 4 ++-- Sources/OnboardingKit/View+Ext.swift | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Sources/OnboardingKit/OnboardingRow.swift b/Sources/OnboardingKit/OnboardingRow.swift index e96dc8b..f1fb6e9 100644 --- a/Sources/OnboardingKit/OnboardingRow.swift +++ b/Sources/OnboardingKit/OnboardingRow.swift @@ -29,13 +29,13 @@ public struct OnboardingRow: View { let id = UUID() let image: Image - let title: LocalizedStringResource - let description: LocalizedStringResource + let title: LocalizedStringKey + let description: LocalizedStringKey public init( image: Image, - title: LocalizedStringResource, - description: LocalizedStringResource + title: LocalizedStringKey, + description: LocalizedStringKey ) { self.image = image self.title = title diff --git a/Sources/OnboardingKit/OnboardingView.swift b/Sources/OnboardingKit/OnboardingView.swift index e12bc3f..149c18c 100644 --- a/Sources/OnboardingKit/OnboardingView.swift +++ b/Sources/OnboardingKit/OnboardingView.swift @@ -9,9 +9,9 @@ import SwiftUI public struct OnboardingView: View { - let title: LocalizedStringResource + let title: LocalizedStringKey let rows: [OnboardingRow] - let actionTitle: LocalizedStringResource + let actionTitle: LocalizedStringKey let action: () -> Void public var body: some View { diff --git a/Sources/OnboardingKit/View+Ext.swift b/Sources/OnboardingKit/View+Ext.swift index d9e600d..ffa7881 100644 --- a/Sources/OnboardingKit/View+Ext.swift +++ b/Sources/OnboardingKit/View+Ext.swift @@ -40,8 +40,8 @@ extension View { isPresented: Binding, onDismiss: (() -> Void)?, rows: [OnboardingRow], - title: LocalizedStringResource, - actionTitle: LocalizedStringResource, + title: LocalizedStringKey, + actionTitle: LocalizedStringKey, onConfirm: @escaping () -> Void ) -> some View { self.sheet(