Pinned items timeline implementation for the banner (#3099)
This commit is contained in:
@@ -17,6 +17,11 @@
|
||||
import Foundation
|
||||
|
||||
extension AttributedString {
|
||||
// faster than doing `String(characters)`: https://forums.swift.org/t/attributedstring-to-string/61667
|
||||
var string: String {
|
||||
String(characters[...])
|
||||
}
|
||||
|
||||
var formattedComponents: [AttributedStringBuilderComponent] {
|
||||
runs[\.blockquote].map { value, range in
|
||||
var attributedString = AttributedString(self[range])
|
||||
|
||||
Reference in New Issue
Block a user