Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
remove unnecessary animation in asset detail
Browse files Browse the repository at this point in the history
  • Loading branch information
nuo-xu committed Nov 16, 2023
1 parent 5e688c4 commit 6bb3919
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,20 @@ struct AssetDetailHeaderView: View {
}
HStack {
tokenImageNameAndNetwork
.transaction { transaction in
transaction.animation = nil
transaction.disablesAnimations = true
}
}
}
.frame(maxWidth: .infinity, alignment: .leading)
} else {
HStack {
tokenImageNameAndNetwork
.transaction { transaction in
transaction.animation = nil
transaction.disablesAnimations = true
}
if horizontalSizeClass == .regular {
Spacer()
DateRangeView(selectedRange: $assetDetailStore.timeframe)
Expand Down Expand Up @@ -255,6 +263,10 @@ struct AssetDetailHeaderView: View {
}
actionButtonsContainer
.padding(.horizontal, assetDetailStore.assetDetailToken.isFungibleToken ? 0 : 16)
.transaction { transaction in
transaction.animation = nil
transaction.disablesAnimations = true
}
}
}
}
Expand Down

0 comments on commit 6bb3919

Please sign in to comment.