Skip to content

[Feature Request] Better Tab Bar Integration and Preservation During Navigation #8

Closed

Description

@jason09

Problem Description

When using FlowKit with a TabView, navigating to new views from within a tab often causes the tab bar to be hidden unexpectedly. The new view doesn't open within the tab context, breaking the expected user experience.

Current Behavior

  • When pushing a new view from a tab using Flow.push(), the tab bar disappears
    
  • The navigation feels like it's leaving the tab context rather than staying within it
    
  • Users lose the ability to switch tabs, which is crucial for app navigation
    

Expected Behavior

  • Views pushed from within a tab should preserve the tab bar
    
  • Navigation should stay within the current tab's navigation stack
    
  • The tab bar should remain visible unless explicitly hidden
    

Code Example

Current problematic usage:

// From within a tab view controller
Flow.push(DetailView())
// Tab bar gets hidden after this navigation

Desired usage:

// Option A: Automatic tab bar preservation
Flow.push(DetailView(), from: self, preserveTabBar: true)

// Option B: Tab-aware navigation
Flow.tabPush(DetailView(), from: self)

This feature would make FlowKit even more versatile for real-world iOS applications that heavily rely on tab-based navigation!

Activity

  1. mercen-lee commented on Jun 22, 2026

    @mercen-lee
    Owner

    Resolved in 86cdb21 on main.

    Added tab-aware push support: push(_:animated:preserveTabBar:), push(_:from:animated:preserveTabBar:), and tabPush(_:). Pushed controllers now default to preserving the tab bar, and tabPush targets the selected tab navigation controller when available.

    Validation: xcodebuild -scheme FlowKit -destination "generic/platform=iOS Simulator" -sdk iphonesimulator build succeeded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions