Skip to content

Commit

Permalink
Update BPKText to use LocalizedStringKey for text
Browse files Browse the repository at this point in the history
  • Loading branch information
frugoman committed Dec 22, 2023
1 parent 21b5af6 commit 753f3f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Backpack-SwiftUI/Text/Classes/BPKText.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ import SwiftUI
/// Use `limeLimit(_ number: Int?)` to set the number of lines can be displayed. Pass in `nil` for unlimited lines
///
public struct BPKText: View {
private var text: String
private var text: LocalizedStringKey
private var style: BPKFontStyle

private var textColor = Color(BPKColor.textPrimaryColor)
private var lineLimit: Int? = 1
private var strikethrough: Bool = false

public init(_ text: String, style: BPKFontStyle = .bodyDefault) {
self.text = text
self.text = .init(text)
self.style = style
}

Expand Down

0 comments on commit 753f3f0

Please sign in to comment.