Closed
Labels
bugSomething isn't working
Description
Summary
These defects were found while reviewing #15. They were already on iOS 18 before that PR, so they are not regressions: #15 only removed the iOS 15/16 branch.
- Typed text has no design-system style. The
TextFieldinComponents/SearchBar.swift(searchField) styles its prompt withFont.dash.subhead/black1000Alpha30, but the typed text gets no font or colour. The text you type is therefore system body (17pt) in.primary, while the placeholder is subhead (15pt). In dashwallet-ios (LocalCurrencyView,SelectCoinView), the line visibly changes size on the first keystroke. The removed iOS 15/16 branch at least setforegroundColor(Color.dash.primaryText). Fix:.font(Font.dash.subhead).foregroundStyle(Color.dash.primaryText)on the field, the same wayAddressFieldViewdoes it. isEditingduplicatesisFocused.@State isEditingmirrors@FocusState isFocusedthrough anonAppearsync and anonChangecopy, and the cancel button writes both. On top of that, the change is animated three times:withAnimationinonChange,.animation(value: isEditing)on the container, and again in the cancel action. Driving everything fromisFocusedalone removes the mirror and the double animation. Check that the cancel slide-in and slide-out animation stays the same.
How to check
Type into the search field in LocalCurrencyView. The placeholder and the typed text should match in size and colour. Then tap Cancel: the animation should run once.
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity