Skip to content

Commit

Permalink
Revert to LocalizedStringKey
Browse files Browse the repository at this point in the history
  • Loading branch information
BortoAle committed Dec 2, 2024
1 parent cf489f1 commit 243b058
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Sources/OnboardingKit/OnboardingRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Sources/OnboardingKit/OnboardingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions Sources/OnboardingKit/View+Ext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ extension View {
isPresented: Binding<Bool>,
onDismiss: (() -> Void)?,
rows: [OnboardingRow],
title: LocalizedStringResource,
actionTitle: LocalizedStringResource,
title: LocalizedStringKey,
actionTitle: LocalizedStringKey,
onConfirm: @escaping () -> Void
) -> some View {
self.sheet(
Expand Down

0 comments on commit 243b058

Please sign in to comment.