-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MOB-1909 - Global search receiver functionality (#454)
* Updated receive button place. Removed current profile switcher. Added send button * Updated home screen title view * Added send crypto view. Show from the home view. Added input field and scan qr option * Added section with user's wallets * Added send crypto view model Added UI for following selection * Refactoring * Updated nav bar customisation * Disable interactive dismiss when navigate * Extracted tab selection view from explore module * Refactoring * Created UI for token balance * Make tokens selectable * Added UI for domains list in assets selection Adjusted navigation header UI * Created senc crypto flow actions Handle actions in view model Hide empty sections on receiver selection screen * Pass actions from select receiver and asset type views * Refactoring * Fixed initial onAppear call in token icons view * Created UDNumberButtonView * Created number pad view and input interpreter. Created tests for interpreter * Improved number pad logic * Added UI for input and token info * Added converted value label and toggle * Added confirmation button * Refactoring * Disable animation for primary input view * Swap buy and send actions on home screen * Fixed copy on select receiver screen * Added token icon near primary input value * Adjusted UI for nav bar and in the IP SE * Added search by domain profiles * Show direct wallet address result * Fixed first responder reset issue
- Loading branch information
1 parent
071002f
commit f941702
Showing
11 changed files
with
171 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
unstoppable-ios-app/domains-manager-ios/Entities/DebounceObject.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// DebounceObject.swift | ||
// domains-manager-ios | ||
// | ||
// Created by Oleg Kuplin on 21.03.2024. | ||
// | ||
|
||
import Combine | ||
import SwiftUI | ||
|
||
public final class DebounceObject: ObservableObject { | ||
@Published var text: String = "" | ||
@Published var debouncedText: String = "" | ||
private var bag = Set<AnyCancellable>() | ||
|
||
public init(dueTime: TimeInterval = 0.5) { | ||
$text | ||
.removeDuplicates() | ||
.debounce(for: .seconds(dueTime), scheduler: DispatchQueue.main) | ||
.sink(receiveValue: { [weak self] value in | ||
self?.debouncedText = value | ||
}) | ||
.store(in: &bag) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters