diff --git a/Anytype/Sources/PresentationLayer/Common/SwiftUI/CounterView.swift b/Anytype/Sources/PresentationLayer/Common/SwiftUI/CounterView.swift index 3d643efb5c..46689b10aa 100644 --- a/Anytype/Sources/PresentationLayer/Common/SwiftUI/CounterView.swift +++ b/Anytype/Sources/PresentationLayer/Common/SwiftUI/CounterView.swift @@ -7,17 +7,17 @@ enum CounterViewStyle { } struct CounterView: View { - - let count: Int + + let text: String let style: CounterViewStyle - + init(count: Int, style: CounterViewStyle = .default) { - self.count = count + self.text = count > 999 ? "999+" : "\(count)" self.style = style } - + var body: some View { - Text("\(count)") + Text(text) .anytypeFontStyle(.caption1Regular) // Without line height multiple .foregroundStyle(Color.Control.white) .frame(height: 20)