-
Notifications
You must be signed in to change notification settings - Fork 7
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
Conversation
There was a problem hiding this 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
Well I've deleted the testing code. for compiling you should put it in a view |
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 */ = { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 subclassingUITabBar
. and you'd have to work inRootTabBarController
to customize itstabBar
propertyi 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 aselected
and adeselected
state; in theselected
state, a dot appears under the icon in place of the titleif 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 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 i didnt have the chance to look at your component closely - but reading it its seems as though perhaps the 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 |
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 |
no need, thanks @ethanswift |
you mean changing class name to TabBar? |
What this PR does:
Creates a tab bar UI for tab bar controller
Checklist
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: