-
Notifications
You must be signed in to change notification settings - Fork 123
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
Underline is not visible anymore, see example code for simple! #30
Comments
I'm soooo sorry! |
No problem :) Also I have problem with the content inset to add padding from 1.2.0, it won't change the padding, any ideas why? What I'm trying to do is when I have 3 menus/title I want it to be center but at the same time resize the underline to fit the text width, how could I manage that? |
I'll check the padding problem later. You can change PagingMenuViewController.view.bounds.width on storyboard or view controller. It is one of the way to change the menu layout.
http://blog.ijasoneverett.com/2014/02/resize-uitableview-height-with-auto-layout/ You can set any width according to the number of item. |
I released v1.2.1 https://github.com/kazuhiro4949/PagingKit/releases/tag/1.2.1 |
Great thanks alot :)
I noticed also for editing underline height in UnderlineFocusView class, your forgot to add the var to the private func setup.
Now its
attribute: .height, multiplier: 1, constant: 4))
It should be
attribute: .height, multiplier: 1, constant: underlineHeight))
And how do I access this var from my vc to change it?
Regards Homan
… On 5 Jan 2018, at 02:55, Kazuhiro Hayashi ***@***.***> wrote:
I released 1.2.1
https://github.com/kazuhiro4949/PagingKit/releases/tag/1.2.1 <https://github.com/kazuhiro4949/PagingKit/releases/tag/1.2.1>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#30 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AGy-vIty12f1-dvIu4kWf8Twg_HugMRPks5tHYD2gaJpZM4RTZlc>.
|
I'd clean forgotten underlineHeight :p |
I released 1.2.2 |
You can set a value to the property with v1.2.2. let focusView = UnderlineFocusView()
focusView.underlineHeight = 10
menuViewController?.registerFocusView(view: focusView) |
great thanks alot :) but same goes for underlineColor there is no didSet! sorry should be:
|
Same goes for TitleLabelMenuViewCell, should be: /// The text color when selecred
|
Thanks a lot lol. TitleLabelMenuViewCell object is reused in PagingMenuView again and again because of the architecture. |
@HomanF func menuViewController(viewController: PagingMenuViewController, cellForItemAt index: Int) -> PagingMenuViewCell {
let cell = viewController.dequeueReusableCell(withReuseIdentifier: "identifier", for: index) as! TitleLabelMenuViewCell
cell.focusColor = .blue
cell.normalColor = .red
cell.isSelected = (viewController.currentFocusedIndex == index)
cell.titleLabel.text = dataSource[index].menu
return cell
} |
@HomanF |
I added cellAlignment feature in 1.3.0. So you can cells in the center.
|
No description provided.
The text was updated successfully, but these errors were encountered: