Skip to content

Commit

Permalink
Merge pull request #165 from bitcoinppl/162-transaction-details-page-…
Browse files Browse the repository at this point in the history
…design-tweaks

Add pattern to transaction details screen
  • Loading branch information
praveenperera authored Jan 29, 2025
2 parents e0501b2 + 903e32e commit 5718687
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "dark.svg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "transaction_detail_pattern.svg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import SwiftUI

struct TransactionDetailsView: View {
@Environment(AppManager.self) private var app
@Environment(\.colorScheme) private var colorScheme
@Environment(\.openURL) private var openURL
private let screenWidth = UIScreen.main.bounds.width
private let screenHeight = UIScreen.main.bounds.height
Expand Down Expand Up @@ -262,6 +263,13 @@ struct TransactionDetailsView: View {
}
}
}
.background(
Image(colorScheme == .light ? .transactionDetailsPatternLight : .transactionDetailsPatternDark)
.resizable()
.aspectRatio(contentMode: .fill)
.frame(maxWidth: .infinity)
.ignoresSafeArea(edges: .top)
)
}
}

Expand Down

0 comments on commit 5718687

Please sign in to comment.