Skip to content

Commit 7bb981c

Browse files
committed
IOS-5387 Fix on drag for new card label
1 parent f44fa77 commit 7bb981c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ struct NewSpaceCardLabel: View {
1111

1212
var body: some View {
1313
content
14-
.if(model.isPinned) {
15-
$0.onDrag {
16-
draggedSpaceViewId = model.spaceViewId
17-
return NSItemProvider()
18-
} preview: {
19-
EmptyView()
20-
}
14+
.onDragIf(model.isPinned) {
15+
draggedSpaceViewId = model.spaceViewId
16+
return NSItemProvider()
17+
} preview: {
18+
EmptyView()
2119
}
2220
}
2321

0 commit comments

Comments
 (0)