Move the activity indicator from the navigator to the testapp
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by reading DocumentWebView.swift at the linked location to understand how the activity indicator is currently displayed while a resource loads. Then compare the proposed approaches: loading events with a test-app-owned indicator, exposing the resource view, or providing an indicator factory. Done means settling and implementing an API that lets the test app control the UX without losing correct placement on the scrolling resource.
Written by the indexing model from the issue text.
Description
Right now an activity indicator is displayed inside the navigator while a resource (from the readingOrder) is loaded.
This is a problem because the test app should be in control of everything related to the UX and style.
I suggest moving this into the testapp itself, and add events in the navigator API to notify the testapp that a resource is being loaded.
Note that this pose an issue because the test app can't directly put an activity indicator on the resource view that is being scrolled, it will be positioned absolutely above the navigator and not scroll with the document. Maybe we need an API from the navigator to expose the view of the resource, so that the testapp can add it directly on it.
As an alternative, the testapp could provide an "activity indicator factory" that will be called by the navigator, and the navigator will automatically add/remove the activity indicator on the resource when relevant.
- Dominant language
- Swift
- Stars
- 557
- Forks
- 249
- Avg merge
- 3h 52m
- Merged PRs (30d)
- 19
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from readium/swift-toolkit
-
triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
readium/swift-toolkit#954 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
readium/swift-toolkit#841 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 57/100
readium/swift-toolkit#961 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
readium/swift-toolkit#959 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
readium/swift-toolkit#953 ·
Maintainers usually reply within 1 day
All issues in readium/swift-toolkit
Similar issues
-
area: models enhancement needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
rexmhall09/TUFF#69 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nikitabobko/AeroSpace#2427 · 1 comment ·
Maintainers usually reply within 8 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Maintainers usually reply within 1 day
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
A second click on the Control Center widget doesn't close Control CenterPossibly taken @MaHofseth claimed this today. Openneeds-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100