[iOS] Separate URL text field & display view hierarchies - #38675
[iOS] Separate URL text field & display view hierarchies#38675kylehickinson wants to merge 1 commit into
Conversation
|
[puLL-Merge] - brave/brave-core@38675 PR Review: Fullscreen Search Input RefactorDescriptionReplaces Extracts URL input field into new Possible Issues
Security HotspotsNone. Privacy Hotspots
ChangesChangesTopToolbarView.swift
SearchURLBarInputView.swift (new)
LocationContainerView.swift (new)
SearchContainerViewController.swift
BVC+ToolbarDelegate.swift
BrowserViewController.swift + BVC extensions
AutocompleteTextField.swift
TabLocationView.swift
sequenceDiagram
actor User
participant TLV as TabLocationView
participant TTV as TopToolbarView
participant BVC as BrowserViewController
participant SC as SearchContainerViewController
participant IB as SearchURLBarInputView
User->>TLV: tap location
TLV->>TTV: tabLocationViewDidTapLocation
TTV->>BVC: topToolbarDidRequestSearchInput(text,pasted,search)
BVC->>BVC: presentSearchInput
BVC->>SC: init + addChild (fullscreen)
BVC->>SC: beginEditing(text,search,selectAll)
SC->>IB: becomeFirstResponder + setLocation
IB->>SC: autocompleteTextField didEnterText
SC->>SC: updateSearchResults / showSearchResults
User->>IB: submit
IB->>SC: autocompleteTextFieldShouldReturn
SC->>BVC: searchContainer didSubmitText
BVC->>BVC: processAddressBar
BVC->>BVC: finishEditingAndSubmit
BVC->>BVC: dismissSearchInput
BVC->>SC: resignFirstResponder + removeFromParent
User->>IB: cancel
IB->>SC: autocompleteTextFieldDidCancel
SC->>BVC: searchContainerDidCancel
BVC->>BVC: dismissSearchInput
|
With the upcoming changes to the toolbar design we want to avoid having the bottom bar toolbar playing double-duty and also owning the URL input field which users. This shifts ownership of the actual url bar input to SearchContainerViewController, adding a new SearchURLBarInputView it presents alongside the favourites/search child controllers. This simplifies a lot of the keyboard constraint logic since the toolbar only needs to collapse/expand based on the web view input not the url bar input
024fd3b to
90ea6fb
Compare
With the upcoming changes to the toolbar design we want to avoid having the bottom bar toolbar playing double-duty and also owning the URL input field which users. This shifts ownership of the actual url bar input to SearchContainerViewController, adding a new SearchURLBarInputView it presents alongside the favourites/search child controllers. This simplifies a lot of the keyboard constraint logic since the toolbar only needs to collapse/expand based on the web view input not the url bar input
Test
Test matrix:
Steps:
Special verification of iPad on iOS 26+: