Skip to content

Commit

Permalink
Fix brave/brave-ios#8423: Remove unnecessary animation in asset detail (
Browse files Browse the repository at this point in the history
  • Loading branch information
nuo-xu authored Nov 17, 2023
1 parent 4b00cfd commit ea4c19d
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 ea4c19d

Please sign in to comment.