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

Feature/post tab bar ui #104

Closed
wants to merge 5 commits into from
Closed

Feature/post tab bar ui #104

wants to merge 5 commits into from

Conversation

ethanswift
Copy link
Contributor

What this PR does:
Creates a tab bar UI for tab bar controller
Screen Shot 2020-05-18 at 6 35 48 PM

Checklist

  • Compiler warnings resolved
  • Linter warnings resolved
  • User-facing strings in Localizable.strings file
  • Unused code, print statements, and comments removed

Which issue(s) this PR fixes:

Resolves #
Implementing TabBar UI with a function that takes one bar item as parameter and return it as selected.

Special notes for reviewers:

Additional comments:

@ethanswift ethanswift linked an issue May 18, 2020 that may be closed by this pull request
@ethanswift ethanswift requested review from eddyteddy3 and lucianoschillagi and removed request for lucianoschillagi and eddyteddy3 May 18, 2020 17:24
Copy link
Member

@stavares843 stavares843 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when compiling, still shows the previous tab bar

https://jmp.sh/A2ynhc5

@ethanswift
Copy link
Contributor Author

when compiling, still shows the previous tab bar

https://jmp.sh/A2ynhc5

Well I've deleted the testing code. for compiling you should put it in a view

@stavares843
Copy link
Member

great, thanks

just confirming if was implemented

@ethanswift
Copy link
Contributor Author

great, thanks

just confirming if was implemented

Last try, it worked and I took that image, and it's working on Travis CI, but don't know about other devices.

I can add a testing code if you think its necessary.

@@ -532,6 +534,14 @@
path = OfferRequest;
sourceTree = "<group>";
};
C018DD762472EE0800EEB3FC /* TabBarUI */ = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's organize this under Features/TabBar instead of Features/Post/CreatePost


import UIKit

class TabBarUI: UIView {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we call this TabBar instead of TabBarUI? no need to include UI in the name of a UI component

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ethanswift i think maybe the requirements have been lost in translation? this Issue covers replacing the tab bar of the entire app

so what i would imagine is, instead of subclassing UIView, you'd be subclassing UITabBar. and you'd have to work in RootTabBarController to customize its tabBar property

i didnt have the chance to look at your component closely - but reading it its seems as though perhaps the dotView is statically placed under the Home tab icon. the intention is for each tab to have a selected and a deselected state; in the selected state, a dot appears under the icon in place of the title

if getting the dot aspect in is a lot, i'd say its acceptable to drop the dot bit and just concern yourself with replacing the tab bar

Actually, its instance method is getting a selected enum which asks for the tab which is selected as a parameter and adds that dot and bolden that image (make it black). so in the function which is setUp(selected: .feed) you choose which tab to be loaded

@hkellaway
Copy link
Contributor

hkellaway commented May 18, 2020

@ethanswift i think maybe the requirements have been lost in translation? this Issue covers replacing the tab bar of the entire app

so what i would imagine is, instead of subclassing UIView, you'd be subclassing UITabBar. and you'd have to work in RootTabBarController to customize its tabBar property

i didnt have the chance to look at your component closely - but reading it its seems as though perhaps the dotView is statically placed under the Home tab icon. the intention is for each tab to have a selected and a deselected state; in the selected state, a dot appears under the icon in place of the title

if getting the dot aspect in is a lot, i'd say its acceptable to drop the dot bit and just concern yourself with replacing the tab bar

@ethanswift
Copy link
Contributor Author

@ethanswift i think maybe the requirements have been lost in translation? this Issue covers replacing the tab bar of the entire app

so what i would imagine is, instead of subclassing UIView, you'd be subclassing UITabBar. and you'd have to work in RootTabBarController to customize its tabBar property

i didnt have the chance to look at your component closely - but reading it its seems as though perhaps the dotView is statically placed under the Home tab icon. the intention is for each tab to have a selected and a deselected state; in the selected state, a dot appears under the icon in place of the title

if getting the dot aspect in is a lot, i'd say its acceptable to drop the dot bit and just concern yourself with replacing the tab bar

Actually, its instance method is getting a selected enum which asks for the tab which is selected as a parameter and adds that dot and bolden that image (make it black). so in the function which is setUp(selected: .feed) you choose which tab to be loaded

@ethanswift
Copy link
Contributor Author

@ethanswift i think maybe the requirements have been lost in translation? this Issue covers replacing the tab bar of the entire app

so what i would imagine is, instead of subclassing UIView, you'd be subclassing UITabBar. and you'd have to work in RootTabBarController to customize its tabBar property

i didnt have the chance to look at your component closely - but reading it its seems as though perhaps the dotView is statically placed under the Home tab icon. the intention is for each tab to have a selected and a deselected state; in the selected state, a dot appears under the icon in place of the title

if getting the dot aspect in is a lot, i'd say its acceptable to drop the dot bit and just concern yourself with replacing the tab bar

Also for the tab bar you can add the view if necessary, if not we can work on adding the code inside tab bar controller

@hkellaway
Copy link
Contributor

Also for the tab bar you can add the view if necessary, if not we can work on adding the code inside tab bar controller

let's replace the tab bar in this PR if youre good to go !

@ethanswift
Copy link
Contributor Author

Also for the tab bar you can add the view if necessary, if not we can work on adding the code inside tab bar controller

let's replace the tab bar in this PR if youre good to go !

sure

@stavares843
Copy link
Member

I can add a testing code if you think its necessary.

no need, thanks @ethanswift

@ethanswift
Copy link
Contributor Author

Also for the tab bar you can add the view if necessary, if not we can work on adding the code inside tab bar controller

let's replace the tab bar in this PR if youre good to go !

you mean changing class name to TabBar?

@ethanswift ethanswift closed this May 19, 2020
@ethanswift ethanswift deleted the Feature/Post-TabBarUI branch May 19, 2020 15:11
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.

Tab Bar UI
3 participants