Skip to content

Commit 2cd89f0

Browse files
committed
Clean up
1 parent 40a325c commit 2cd89f0

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

CodeEdit/Features/TabBar/Views/TabBarItemView.swift

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@
77

88
import SwiftUI
99

10-
// TODO: Drag to activate behavior.
11-
// In Xcode, dragging an inactive tab will make it activated. But due to our editor performance issue,
12-
// there will be a huge lag after releasing the drag. So I will implement this behavior after optimizing
13-
// the file-opening performance.
14-
15-
// Disable `file_length` because this file has a lot of properties and algorithms.
16-
// I kept some blank lines to make this file organized, so I have to disable the file length rule.
17-
// Disable `type_body_length` because this view is fairly complicated and I have modularized some parts.
18-
// swiftlint:disable file_length type_body_length
1910
struct TabBarItemView: View {
2011
@Environment(\.colorScheme)
2112
private var colorScheme
@@ -304,7 +295,6 @@ struct TabBarItemView: View {
304295
y: 0
305296
)
306297
.opacity(isAppeared && onDragTabId != item.tabID ? 1.0 : 0.0)
307-
308298
.zIndex(
309299
isActive
310300
? (prefs.preferences.general.tabBarStyle == .native ? -1 : 2)
@@ -334,11 +324,6 @@ struct TabBarItemView: View {
334324
}
335325
.id(item.tabID)
336326
.tabBarContextMenu(item: item, isTemporary: isTemporary)
337-
// .zIndex(
338-
// isActive
339-
// ? 1
340-
// : (isDragging ? 2 : (isPressing ? 2 : 0))
341-
// )
342327
}
343328
}
344329
// swiftlint:enable type_body_length

0 commit comments

Comments
 (0)