mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
remove code related to the previous bidi usage implementation of whitespaces for the timestamp label
This commit is contained in:
@@ -41,22 +41,6 @@ extension String {
|
||||
}
|
||||
}
|
||||
|
||||
extension String {
|
||||
static func generateBreakableWhitespaceEnd(whitespaceCount: Int, layoutDirection: LayoutDirection) -> String {
|
||||
guard whitespaceCount > 0 else {
|
||||
return ""
|
||||
}
|
||||
|
||||
var whiteSpaces = layoutDirection.isolateLayoutUnicodeString
|
||||
|
||||
// fixed size whitespace of size 1/3 em per character
|
||||
whiteSpaces += String(repeating: "\u{2004}", count: whitespaceCount)
|
||||
|
||||
// braille whitespace, which is non breakable but makes previous whitespaces breakable
|
||||
return whiteSpaces + "\u{2800}"
|
||||
}
|
||||
}
|
||||
|
||||
extension String {
|
||||
func ellipsize(length: Int) -> String {
|
||||
guard count > length else {
|
||||
|
||||
Reference in New Issue
Block a user