Skip to content

Commit

Permalink
ui: seedphraseview paging
Browse files Browse the repository at this point in the history
  • Loading branch information
reez committed Jun 22, 2024
1 parent e937ccd commit 7d66a80
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
4 changes: 2 additions & 2 deletions LDKNodeMonday.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -927,8 +927,8 @@
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/reez/BitcoinUI.git";
requirement = {
kind = exactVersion;
version = 1.0.4;
branch = main;
kind = branch;
};
};
AE7C4A062B406D590061189D /* XCRemoteSwiftPackageReference "SimpleToast" */ = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"originHash" : "2bc7bdb21f660c68ca67dbbd096acde2dcd9c397a0238dc96bd98b886f4df9fc",
"originHash" : "3c4f831e3e2d84e3d749572be35ef446cf04910008de67451a51af6ca58e22b3",
"pins" : [
{
"identity" : "bitcoinui",
"kind" : "remoteSourceControl",
"location" : "https://github.com/reez/BitcoinUI.git",
"state" : {
"revision" : "1c10c7916fffcade65d0f6937e7b22a5f3a3db49",
"version" : "1.0.4"
"branch" : "main",
"revision" : "f42cdf1e33c60f1c5c2c1bc22a35781f912f70f5"
}
},
{
Expand Down
7 changes: 6 additions & 1 deletion LDKNodeMonday/View/Home/OnboardingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ struct OnboardingView: View {
.submitLabel(.done)
.padding(.horizontal, 40)
if viewModel.seedPhraseArray != [] {
SeedPhraseView(words: viewModel.seedPhraseArray, preferredWordsPerRow: 3)
SeedPhraseView(
words: viewModel.seedPhraseArray,
preferredWordsPerRow: 2,
usePaging: true,
wordsPerPage: 6
)
}
}
.padding()
Expand Down
6 changes: 4 additions & 2 deletions LDKNodeMonday/View/Profile/Danger/SeedView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ struct SeedView: View {

VStack(alignment: .leading) {
SeedPhraseView(
words: viewModel.seed.mnemonic.components(separatedBy: " "),
preferredWordsPerRow: 3
words: viewModel.seed.mnemonic.components(separatedBy: " "),
preferredWordsPerRow: 2,
usePaging: true,
wordsPerPage: 6
)
HStack {
Spacer()
Expand Down

0 comments on commit 7d66a80

Please sign in to comment.