Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide TabBars #1

Closed
saroar opened this issue Apr 6, 2021 · 6 comments
Closed

Hide TabBars #1

saroar opened this issue Apr 6, 2021 · 6 comments

Comments

@saroar
Copy link

saroar commented Apr 6, 2021

https://github.com/AddaMeSPB/AddaMeIOSSwiftUI/blob/master/AddaMeIOS/App/AppTabView.swift#L46
i have some custom types for hiding tab bar but quis was how to use this into composable-a...

you send me this link https://stackoverflow.com/questions/58444689/swiftui-hide-tabbar-in-subview

thanks

@darrarski
Copy link
Owner

I'm afraid I don't understand your question. I saw your code and it looks like you’re not using ComposableArchitecture. If you want to using it, I recommend to start with these videos (available for free). I also recommend the whole Pointfree series if you want to learn more. In case you have some specific questions about ComposableArchitecture, you can ask it on the GitHub Discussions page.

@saroar
Copy link
Author

saroar commented Apr 6, 2021

i Pointfree regular subscriber :) (i love their videos) i show my code which is working but without composable architecture, my quis was how we can do it with composable architecture
i am a big fan of open source so i create one big project fully open source which I send u a link to (swift ios + swift back end)
so i am trying to convert my full app with composable architecture

@darrarski
Copy link
Owner

darrarski commented Apr 6, 2021

I would start by defining the state and actions for your view. Then you can create a reducer and add Store<YourState, YourAction> to the view. Brandon and Stephen explain it really well on Point-Free videos. Good luck!

@saroar
Copy link
Author

saroar commented Apr 12, 2021

hi, do you have the same problem with your app?

received action:
  TabsAction.event(
    EventsAction.onAppear
  )
  (No state changes)

received action:
  TabsAction.event(
    EventsAction.onAppear
  )
  (No state changes)

received action:
  TabsAction.event(
    EventsAction.locationResponse(
      Result<DelegateEvent, Never>.success(
        DelegateEvent.didChangeAuthorization(
          CLAuthorizationStatus.CLAuthorizationStatus
        )
      )
    )
  )
  (No state changes)

received action:
  TabsAction.event(
    EventsAction.locationResponse(
      Result<DelegateEvent, Never>.success(
        DelegateEvent.didChangeAuthorization(
          CLAuthorizationStatus.CLAuthorizationStatus
        )
      )
    )
  )
  (No state changes)

i mean call two times root view

@darrarski
Copy link
Owner

It's hard to tell without the context what's going on. Please be more descriptive when asking questions (for example: provide a list of steps to reproduce).

I will take a look at the problem you experienced and let you know if I manage to reproduce it and investigate later today.

@darrarski
Copy link
Owner

I manage to reproduce the problem and created a dedicated issue for it: #2. Closing.

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

No branches or pull requests

2 participants