Skip to content

Commit 92833f8

Browse files
committed
IOS-5387 Fixes
1 parent 7bb981c commit 92833f8

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Anytype/Sources/PresentationLayer/Modules/SpaceHub/Subviews/SpaceCard/NewSpaceCardLabel.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,15 @@ struct NewSpaceCardLabel: View {
4444
wallpaper: model.wallpaper,
4545
spaceIcon: model.objectIconImage
4646
))
47+
.background(Color.Background.primary)
4748
.clipShape(RoundedRectangle(cornerRadius: 20, style: .continuous))
4849
}
4950

5051
private func mainContentWithMessage(_ message: SpaceCardLastMessageModel) -> some View {
5152
VStack(alignment: .leading, spacing: 0) {
5253
HStack(alignment: .bottom) {
5354
HStack(alignment: .center) {
54-
AnytypeText(model.name.withPlaceholder, style: .bodySemibold)
55+
AnytypeText(model.nameWithPlaceholder, style: .bodySemibold)
5556
.lineLimit(1)
5657
.foregroundColor(Color.Text.primary)
5758
if model.isMuted {
@@ -81,7 +82,7 @@ struct NewSpaceCardLabel: View {
8182
private var mainContentWithoutMessage: some View {
8283
VStack(alignment: .leading, spacing: 0) {
8384
HStack {
84-
AnytypeText(model.name.withPlaceholder, style: .bodySemibold)
85+
AnytypeText(model.nameWithPlaceholder, style: .bodySemibold)
8586
.lineLimit(1)
8687
.foregroundColor(Color.Text.primary)
8788
if model.isMuted {

Anytype/Sources/PresentationLayer/Modules/SpaceHub/Subviews/SpaceCard/SpaceCardLabel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ struct SpaceCardLabel: View {
1515
.frame(width: 56, height: 56)
1616
VStack(alignment: .leading, spacing: 0) {
1717
HStack {
18-
Text(model.name.withPlaceholder)
18+
Text(model.nameWithPlaceholder)
1919
.anytypeFontStyle(.bodySemibold)
2020
.lineLimit(1)
2121
.foregroundStyle(Color.Text.primary)

Anytype/Sources/PresentationLayer/Modules/SpaceHub/Subviews/SpaceCard/SpaceCardModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ struct SpaceCardModel: Equatable, Identifiable {
55
let spaceViewId: String
66
let targetSpaceId: String
77
let objectIconImage: Icon
8-
let name: String
8+
let nameWithPlaceholder: String
99
let isPinned: Bool
1010
let isLoading: Bool
1111
let isShared: Bool

Anytype/Sources/PresentationLayer/Modules/SpaceHub/Subviews/SpaceCard/SpaceCardModelBuilder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ final class SpaceCardModelBuilder: SpaceCardModelBuilderProtocol, Sendable {
5454
spaceViewId: spaceView.id,
5555
targetSpaceId: spaceView.targetSpaceId,
5656
objectIconImage: spaceView.objectIconImage,
57-
name: spaceView.name,
57+
nameWithPlaceholder: spaceView.name.withPlaceholder,
5858
isPinned: spaceView.isPinned,
5959
isLoading: spaceView.isLoading,
6060
isShared: spaceView.isShared,

0 commit comments

Comments
 (0)