Skip to content

Commit

Permalink
[#585] Update iOS animations (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaozhan authored Apr 24, 2022
1 parent 00c6941 commit 8cb628e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions ios/CCC/UI/Calculator/InputView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ struct InputView: View {
.fixedSize(horizontal: false, vertical: true)
.foregroundColor(MR.colors().text.get())
.font(.title2)
.animation(.default)

Spacer()

Expand Down
1 change: 1 addition & 0 deletions ios/CCC/UI/Calculator/OutputView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ struct OutputView: View {
}
.frame(minWidth: 0, maxWidth: .infinity, alignment: .bottomLeading)
.padding(EdgeInsets(top: 0, leading: 20, bottom: 0, trailing: 20))
.animation(.default)

}
.contentShape(Rectangle())
Expand Down
4 changes: 3 additions & 1 deletion ios/CCC/UI/Calculator/RateStateView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ struct RateStateView: View {
.frame(width: 12, height: 12, alignment: .center)
.foregroundColor(color)
Text(text).font(.caption)
}.padding(.bottom, 5)
}
.padding(.bottom, 5)
.animation(.default)
}
}
2 changes: 1 addition & 1 deletion ios/CCC/UI/Currencies/CurrenciesView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ struct CurrenciesView: View {
}
}
.background(MR.colors().background.get())
.animation(.default)

if observable.viewModel.isFirstRun() {
SelectCurrencyView(
Expand All @@ -76,6 +75,7 @@ struct CurrenciesView: View {
// }

}
.animation(.default)
.navigationBarHidden(true)
}
.onAppear { observable.startObserving() }
Expand Down
2 changes: 1 addition & 1 deletion ios/CCC/UI/Main/MainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct MainView: View {

NavigationStackView(
transitionType: .default,
easing: Animation.easeInOut(duration: 0.5)
easing: Animation.easeInOut
) {
if observable.viewModel.isFistRun() {
SliderView()
Expand Down

0 comments on commit 8cb628e

Please sign in to comment.