Skip to content

Commit

Permalink
IOS-9056 Update animation and color
Browse files Browse the repository at this point in the history
  • Loading branch information
Balashov152 committed Jan 30, 2025
1 parent 14a546e commit ebdb3d9
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ struct LoadableTokenBalanceView: View {
switch state {
case .loading(.some(let cached)):
textView(cached)
.modifier(PulseEffect())
.modifier(Shimmer())
case .loading(.none):
RoundedRectangle(cornerRadius: loader.cornerRadius, style: .continuous)
.fill(Colors.Background.tertiary)
.fill(Colors.Control.shimmer)
.frame(size: loader.size)
.modifier(Shimmer())
case .failed(let text, .none):
Expand Down Expand Up @@ -118,6 +118,8 @@ extension LoadableTokenBalanceView {
)
}

Divider()

VStack(alignment: .trailing, spacing: 2) {
LoadableTokenBalanceView(
state: .loading(cached: .string("1 312 422,23 $")),
Expand All @@ -134,6 +136,22 @@ extension LoadableTokenBalanceView {

Divider()

VStack(alignment: .trailing, spacing: 2) {
LoadableTokenBalanceView(
state: .loading(cached: .none),
style: .init(font: Fonts.Regular.subheadline, textColor: Colors.Text.primary1),
loader: .init(size: .init(width: 40, height: 12))
)

LoadableTokenBalanceView(
state: .loading(cached: .none),
style: .init(font: Fonts.Regular.caption1, textColor: Colors.Text.tertiary),
loader: .init(size: .init(width: 40, height: 12))
)
}

Divider()

VStack(alignment: .trailing, spacing: 2) {
LoadableTokenBalanceView(
state: .loaded(text: .string("1 312 422,23 $")),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xEB",
"green" : "0xEB",
"red" : "0xEB"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x49",
"green" : "0x49",
"red" : "0x49"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

0 comments on commit ebdb3d9

Please sign in to comment.