kitasuke / PagingMenuController

Paging view controller with customizable menu in Swift
MIT License
2.49k stars 448 forks source link

Changing the vertical margins of multiline text. #293

Open bagutzu opened 8 years ago

bagutzu commented 8 years ago

So i want to achieve a menu with a multiline text and a round rect indicator, but the top/bottom margins of title and description labels cause the description text to go outside the rectangle.

The margin is too big anyway so it would be nice if we could change it.

bagutzu commented 8 years ago

in the MenuItemView.swift you should change both bottom label constraints between them

titleLabel.bottomAnchor.constraint(equalTo: descriptionLabel.topAnchor, constant: verticalMargin), descriptionLabel.bottomAnchor.constraint(equalTo: bottomAnchor, constant: 0),

daviskoh commented 7 years ago

any updates on this? i feel like being able to position the titleLabel would be useful in general.

currently I have a menuView that looks like this:

image

and adjusting MenuViewCustomizable.height can only do so much when it is already fixed vertically...