Skip to content

Commit

Permalink
Removed close animations on tabs (#1081)
Browse files Browse the repository at this point in the history
* Removed close animations on tabs

* Removed animation on tabContent
  • Loading branch information
maxkel committed Feb 24, 2023
1 parent ca19ae4 commit 34727e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions CodeEdit/Features/TabBar/Views/TabBarItemView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ struct TabBarItemView: View {

/// Close the current tab.
func closeAction() {
if prefs.preferences.general.tabBarStyle == .native {
isAppeared = false
}
isAppeared = false
withAnimation(
.easeOut(duration: prefs.preferences.general.tabBarStyle == .native ? 0.15 : 0.20)
) {
Expand Down
1 change: 1 addition & 0 deletions CodeEdit/WorkspaceView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ struct WorkspaceView: View {
if workspace.workspaceClient != nil, let model = workspace.statusBarModel {
ZStack {
tabContent
.animation(nil, value: UUID())
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.safeAreaInset(edge: .top, spacing: 0) {
Expand Down

0 comments on commit 34727e4

Please sign in to comment.