Skip to content

Commit 809f542

Browse files
authored
xcode: app icon
* xcode: app icon * format
1 parent 1a09940 commit 809f542

File tree

11 files changed

+83
-23
lines changed

11 files changed

+83
-23
lines changed

BDKSwiftExampleWallet.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
AEE6C74F2ABCBA4600442ADD /* WalletSyncState.swift in Sources */ = {isa = PBXBuildFile; fileRef = AEE6C74E2ABCBA4600442ADD /* WalletSyncState.swift */; };
109109
AEE83A492C07F54B00834468 /* BitcoinDevKit in Frameworks */ = {isa = PBXBuildFile; productRef = AEE83A482C07F54B00834468 /* BitcoinDevKit */; };
110110
AEEA0E402DEF80B600C83255 /* Outpoint+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = AEEA0E3F2DEF80B600C83255 /* Outpoint+Extensions.swift */; };
111+
AEEC65532E8EC260003B55E8 /* AppIcon.icon in Resources */ = {isa = PBXBuildFile; fileRef = AEEC65522E8EC25F003B55E8 /* AppIcon.icon */; };
111112
/* End PBXBuildFile section */
112113

113114
/* Begin PBXContainerItemProxy section */
@@ -213,6 +214,7 @@
213214
AEE6C74B2ABCB3E200442ADD /* Transaction+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Transaction+Extensions.swift"; sourceTree = "<group>"; };
214215
AEE6C74E2ABCBA4600442ADD /* WalletSyncState.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletSyncState.swift; sourceTree = "<group>"; };
215216
AEEA0E3F2DEF80B600C83255 /* Outpoint+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Outpoint+Extensions.swift"; sourceTree = "<group>"; };
217+
AEEC65522E8EC25F003B55E8 /* AppIcon.icon */ = {isa = PBXFileReference; lastKnownFileType = folder.iconcomposer.icon; path = AppIcon.icon; sourceTree = "<group>"; };
216218
/* End PBXFileReference section */
217219

218220
/* Begin PBXFrameworksBuildPhase section */
@@ -267,6 +269,7 @@
267269
A7FBCE392A72944C007C960E /* Resources */ = {
268270
isa = PBXGroup;
269271
children = (
272+
AEEC65522E8EC25F003B55E8 /* AppIcon.icon */,
270273
A733D6CF2A81113000F333B4 /* Localizable.xcstrings */,
271274
);
272275
path = Resources;
@@ -697,6 +700,7 @@
697700
buildActionMask = 2147483647;
698701
files = (
699702
AE4984A62A1BBCB8009951E2 /* README.md in Resources */,
703+
AEEC65532E8EC260003B55E8 /* AppIcon.icon in Resources */,
700704
A733D6D02A81113000F333B4 /* Localizable.xcstrings in Resources */,
701705
AE4984832A1BBBD7009951E2 /* Preview Assets.xcassets in Resources */,
702706
AE4984802A1BBBD7009951E2 /* Assets.xcassets in Resources */,

BDKSwiftExampleWallet/Assets.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 0 additions & 14 deletions
This file was deleted.
-8.63 KB
Binary file not shown.

BDKSwiftExampleWallet/Extensions/BDK+Extensions/CbfClient+Extensions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ extension CbfClient {
4848
let info = try await self.nextInfo()
4949
CbfClient.monitoringTasksQueue.sync { Self.lastInfoAt[id] = Date() }
5050
switch info {
51-
case let .progress(progress):
51+
case .progress(let progress):
5252
await MainActor.run {
5353
NotificationCenter.default.post(
5454
name: NSNotification.Name("KyotoProgressUpdate"),
5555
object: nil,
5656
userInfo: ["progress": progress]
5757
)
5858
}
59-
case let .newChainHeight(height):
59+
case .newChainHeight(let height):
6060
await MainActor.run {
6161
NotificationCenter.default.post(
6262
name: NSNotification.Name("KyotoChainHeightUpdate"),

BDKSwiftExampleWallet/Model/BalanceDisplayFormat.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ enum BalanceDisplayFormat: String, CaseIterable, Codable {
1919
switch self {
2020
case .bitcoinSats, .bitcoin, .bip177: return ""
2121
case .fiat: return "$"
22-
default : return ""
22+
default: return ""
2323
}
2424
}
25-
25+
2626
var displayText: String {
2727
switch self {
2828
case .sats, .bitcoinSats: return "sats"
@@ -31,7 +31,7 @@ enum BalanceDisplayFormat: String, CaseIterable, Codable {
3131
case .fiat: return "USD"
3232
}
3333
}
34-
34+
3535
func formatted(_ btcAmount: UInt64, fiatPrice: Double) -> String {
3636
switch self {
3737
case .sats:
1.27 KB
Loading
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"fill" : "system-light",
3+
"groups" : [
4+
{
5+
"layers" : [
6+
{
7+
"fill" : {
8+
"solid" : "display-p3:0.96409,0.82264,0.51574,1.00000"
9+
},
10+
"glass" : false,
11+
"image-name" : "box-rotated.png",
12+
"name" : "box-rotated",
13+
"position" : {
14+
"scale" : 1.25,
15+
"translation-in-points" : [
16+
-71.375,
17+
-172.71875
18+
]
19+
}
20+
}
21+
],
22+
"shadow" : {
23+
"kind" : "layer-color",
24+
"opacity" : 0.5
25+
},
26+
"translucency" : {
27+
"enabled" : true,
28+
"value" : 0.5
29+
}
30+
},
31+
{
32+
"layers" : [
33+
{
34+
"fill" : {
35+
"solid" : "display-p3:0.96409,0.82264,0.51574,1.00000"
36+
},
37+
"glass" : false,
38+
"hidden" : false,
39+
"image-name" : "box-rotated.png",
40+
"name" : "box-rotated-big",
41+
"position" : {
42+
"scale" : 2.5,
43+
"translation-in-points" : [
44+
4.65625,
45+
86.3046875
46+
]
47+
}
48+
}
49+
],
50+
"shadow" : {
51+
"kind" : "layer-color",
52+
"opacity" : 0.5
53+
},
54+
"translucency" : {
55+
"enabled" : true,
56+
"value" : 0.5
57+
}
58+
}
59+
],
60+
"supported-platforms" : {
61+
"circles" : [
62+
"watchOS"
63+
],
64+
"squares" : "shared"
65+
}
66+
}

BDKSwiftExampleWallet/Resources/Localizable.xcstrings

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@
149149
},
150150
"%" : {
151151

152+
},
153+
"%@" : {
154+
"comment" : "A label displaying a transaction ID. The text inside the parentheses is the transaction ID itself.",
155+
"isCommentAutoGenerated" : true
152156
},
153157
"%@ • %@" : {
154158
"localizations" : {
@@ -1482,5 +1486,5 @@
14821486
}
14831487
}
14841488
},
1485-
"version" : "1.0"
1489+
"version" : "1.1"
14861490
}

BDKSwiftExampleWallet/View/Activity/LocalOutputItemView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct LocalOutputItemView: View {
5656
.redacted(reason: isRedacted ? .placeholder : [])
5757

5858
Spacer()
59-
59+
6060
Group {
6161
HStack {
6262
Text(balanceFormat.displayPrefix)

BDKSwiftExampleWallet/View/Activity/TransactionItemView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ struct TransactionItemView: View {
1515
let isRedacted: Bool
1616
private let format: BalanceDisplayFormat
1717
private var fiatPrice: Double
18-
18+
1919
init(
2020
txDetails: TxDetails,
2121
isRedacted: Bool,

0 commit comments

Comments
 (0)