andreamazz/AMScrollingNavbar
View on GitHubHow to keep nav collapsed / expanded with its original status when back?
Open
#265 opened on Aug 17, 2017
8 comments (8 comments)0 reactions (0 reactions)0 assignees (0 assignees)Swift6,074 stars (6,074 stars)632 forks (632 forks)batch import
help wanted
Description
Contributor guide
- Tech stack
- swiftios
- Domain
- mobile
- Issue type
- feature
- DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
- 3
- Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
- 1-3 hours
- Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
- stale
- ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
- unclear
- Prerequisites
- iOS developmentUIScrollView basics
- Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
- 30
- Research direction
- The issue asks how to persist the collapsed/expanded state of the navigation bar when navigating back. The library AMScrollingNavbar resets the navbar state on each view appear. A solution would involve storing the navbar state (e.g., a boolean flag) in the view controller or a shared manager, and restoring it in viewWillAppear. Inspect the library's source code, particularly the AMScrollingNavbarManager class, to understand how the navbar scrolls and where to hook in state persistence. Review the issue comments for any maintainer suggestions.