This commit is contained in:
2024-06-05 22:27:43 -04:00
parent ae7b413409
commit 5f6bc12c80
4 changed files with 80 additions and 16 deletions

View File

@@ -25,6 +25,11 @@ public struct TextLabel<Content: View>: View {
}
extension TextLabel where Content == Text {
public init(_ text: LocalizedStringKey) {
self.init { Text(text) }
}
public init<S>(_ text: S) where S: StringProtocol {
self.init { Text(text) }
}