wip
This commit is contained in:
@@ -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) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user