File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
CodeEdit/Features/TabBar/Views Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 77
88import 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
1910struct 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
You can’t perform that action at this time.
0 commit comments