Skip to content

Conversation

@austincondiff
Copy link
Collaborator

@austincondiff austincondiff commented Jun 2, 2023

Description

Refactored to combine all area tab bars including NavigatorTabBar, InspectorTabBar, and DebugAreaTabBar into one reusable view.

Related Issues

n/a

Checklist

  • I read and understood the contributing guide as well as the code of conduct
  • The issues this PR addresses are related to each other
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • My changes are all related to the related issue above
  • I documented my code

Screenshots

No visual change

Additional Considerations

I named the reusable view AreaTabBar and the reusable type AreaTab. I considered SidebarTab and IconTab. Because this now includes the debug area (which is not a sidebar) SidebarTab was out. My thought was that Apple calls it the Navigator Area, Inspector Area, and Debug Area in Xcode which we do as well. They are all areas so that was my logic. However, I am open to suggestion here as AreaTab may not be extremely clear.

I'd really like some feedback on this new approach as we are no longer using the enums @Wouter01 put into place. Instead we use an array of AreaTab that have a closure to include the view we want to use when the tab is active. Then instead of the switch, we simply do selection.contentView() as selection is a AreaTab.

This PR merges into the debug area tabs branch.

…spectorTabBar, and DebugAreaTabBar into one reusable view.
@austincondiff austincondiff dismissed Wouter01’s stale review June 2, 2023 16:31

Commit was made with requested changes

@austincondiff austincondiff merged commit 1b153ba into debugger-area-tabs Jun 2, 2023
@austincondiff austincondiff deleted the refactor/area-tabs branch June 2, 2023 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants