Skip to content

Commit b72d4a7

Browse files
authored
ui: previews
1 parent 5d1cb3b commit b72d4a7

13 files changed

+0
-114
lines changed

BDKSwiftExampleWallet/View/Activity/TransactionDetailView.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,4 @@ struct TransactionDetailView: View {
175175
amount: UInt64(1_000_000)
176176
)
177177
}
178-
179-
#Preview {
180-
TransactionDetailView(
181-
viewModel: .init(bdkClient: .mock, keyClient: .mock),
182-
canonicalTx: .mock,
183-
amount: UInt64(1_000_000)
184-
)
185-
.environment(\.dynamicTypeSize, .accessibility5)
186-
}
187178
#endif

BDKSwiftExampleWallet/View/Activity/TransactionItemView.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,4 @@ struct TransactionItemView: View {
120120
isRedacted: false
121121
)
122122
}
123-
#Preview {
124-
TransactionItemView(
125-
sentAndReceivedValues: .mock,
126-
canonicalTx: .mock,
127-
isRedacted: false
128-
)
129-
}
130123
#endif

BDKSwiftExampleWallet/View/Activity/TransactionListView.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,4 @@ struct TransactionListView: View {
9999
)
100100
)
101101
}
102-
#Preview {
103-
TransactionListView(
104-
transactions: [
105-
.mock
106-
],
107-
walletSyncState: .synced,
108-
viewModel: .init(
109-
bdkClient: .mock
110-
)
111-
)
112-
.environment(\.dynamicTypeSize, .accessibility5)
113-
}
114102
#endif

BDKSwiftExampleWallet/View/HomeView.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,4 @@ enum NavigationDestination: Hashable {
5252
#Preview {
5353
HomeView(viewModel: .init(bdkClient: .mock))
5454
}
55-
#Preview {
56-
HomeView(viewModel: .init())
57-
.environment(\.dynamicTypeSize, .accessibility5)
58-
}
5955
#endif

BDKSwiftExampleWallet/View/OnboardingView.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,4 @@ struct OnboardingView: View {
124124
#Preview("OnboardingView - en") {
125125
OnboardingView(viewModel: .init(bdkClient: .mock))
126126
}
127-
#Preview("OnboardingView - en - Large") {
128-
OnboardingView(viewModel: .init(bdkClient: .mock))
129-
.environment(\.dynamicTypeSize, .accessibility5)
130-
}
131-
#Preview("OnboardingView - fr") {
132-
OnboardingView(viewModel: .init(bdkClient: .mock))
133-
.environment(\.locale, .init(identifier: "fr"))
134-
}
135127
#endif

BDKSwiftExampleWallet/View/Receive/ReceiveView.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,4 @@ struct ReceiveView: View {
103103
#Preview("ReceiveView - en") {
104104
ReceiveView(viewModel: .init(bdkClient: .mock))
105105
}
106-
107-
#Preview("ReceiveView - en - Large") {
108-
ReceiveView(viewModel: .init(bdkClient: .mock))
109-
.environment(\.dynamicTypeSize, .accessibility5)
110-
}
111-
112-
#Preview("ReceiveView - fr") {
113-
ReceiveView(viewModel: .init(bdkClient: .mock))
114-
.environment(\.locale, .init(identifier: "fr"))
115-
}
116106
#endif

BDKSwiftExampleWallet/View/Send/AddressView.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,4 @@ struct CustomScannerView: View {
139139
navigationPath: .constant(NavigationPath())
140140
)
141141
}
142-
#Preview {
143-
AddressView(
144-
address: "tb1pw6y0vtmsn46epvz0j8ddc46ketmp28t82p22hcrrkch3a0jhu40qe267dl",
145-
navigationPath: .constant(NavigationPath())
146-
)
147-
.environment(\.dynamicTypeSize, .accessibility5)
148-
}
149142
#endif

BDKSwiftExampleWallet/View/Send/AmountView.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,4 @@ struct NumpadButton: View {
146146
navigationPath: .constant(NavigationPath())
147147
)
148148
}
149-
150-
#Preview {
151-
AmountView(
152-
address: "address",
153-
viewModel: .init(bdkClient: .mock),
154-
navigationPath: .constant(NavigationPath())
155-
)
156-
.environment(\.dynamicTypeSize, .accessibility5)
157-
}
158149
#endif

BDKSwiftExampleWallet/View/Send/BuildTransactionView.swift

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -189,17 +189,4 @@ struct BuildTransactionView: View {
189189
navigationPath: .constant(NavigationPath())
190190
)
191191
}
192-
193-
#Preview {
194-
BuildTransactionView(
195-
amount: "100000",
196-
address: "tb1pxg0lakl0x4jee73f38m334qsma7mn2yv764x9an5ylht6tx8ccdsxtktrt",
197-
fee: 17,
198-
viewModel: .init(
199-
bdkClient: .mock
200-
),
201-
navigationPath: .constant(NavigationPath())
202-
)
203-
.environment(\.dynamicTypeSize, .accessibility5)
204-
}
205192
#endif

BDKSwiftExampleWallet/View/Send/FeeView.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,4 @@ struct FeeView: View {
114114
navigationPath: .constant(NavigationPath())
115115
)
116116
}
117-
118-
#Preview {
119-
FeeView(
120-
amount: "50",
121-
address: "tb1pxg0lakl0x4jee73f38m334qsma7mn2yv764x9an5ylht6tx8ccdsxtktrt",
122-
viewModel: .init(feeClient: .mock, bdkClient: .mock),
123-
navigationPath: .constant(NavigationPath())
124-
)
125-
.environment(\.dynamicTypeSize, .accessibility5)
126-
}
127117
#endif

0 commit comments

Comments
 (0)