mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-20 09:11:33 +01:00
Run swift-format
This commit is contained in:
committed by
GitHub Actions
parent
921272e329
commit
d992e4c775
@@ -274,9 +274,13 @@ extension TextState {
|
|||||||
return `self`
|
return `self`
|
||||||
}
|
}
|
||||||
|
|
||||||
public func accessibilityLabel(_ key: LocalizedStringKey, tableName: String? = nil, bundle: Bundle? = nil, comment: StaticString? = nil) -> Self {
|
public func accessibilityLabel(
|
||||||
|
_ key: LocalizedStringKey, tableName: String? = nil, bundle: Bundle? = nil,
|
||||||
|
comment: StaticString? = nil
|
||||||
|
) -> Self {
|
||||||
var `self` = self
|
var `self` = self
|
||||||
`self`.modifiers.append(.accessibilityLabel(.init(key, tableName: tableName, bundle: bundle, comment: comment)))
|
`self`.modifiers.append(
|
||||||
|
.accessibilityLabel(.init(key, tableName: tableName, bundle: bundle, comment: comment)))
|
||||||
return `self`
|
return `self`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -313,7 +317,8 @@ extension Text {
|
|||||||
case let .verbatim(string):
|
case let .verbatim(string):
|
||||||
return text.accessibilityLabel(string)
|
return text.accessibilityLabel(string)
|
||||||
case let .localized(key, tableName, bundle, comment):
|
case let .localized(key, tableName, bundle, comment):
|
||||||
return text.accessibilityLabel(Text(key, tableName: tableName, bundle: bundle, comment: comment))
|
return text.accessibilityLabel(
|
||||||
|
Text(key, tableName: tableName, bundle: bundle, comment: comment))
|
||||||
case .concatenated(_, _):
|
case .concatenated(_, _):
|
||||||
assertionFailure("`.accessibilityLabel` does not support contcatenated `TextState`")
|
assertionFailure("`.accessibilityLabel` does not support contcatenated `TextState`")
|
||||||
return text
|
return text
|
||||||
|
|||||||
Reference in New Issue
Block a user