danielsaidi / Sheeeeeeeeet

Sheeeeeeeeet is a Swift library for creating menus, custom action sheets, context menus etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Titles centered

theogscott opened this issue · comments

I guess this might be a typical FAQ question. All the titles are left-aligned, is there an easy way for the titles to appear centered, just like in UIAlertController?

It's been a while since I worked on this project, but if I don't remember things wrong, perhaps the demo shows how this is done by applying one of the custom themes?

Otherwise, you could create a custom item type that just changes the alignment. There are multiple item types in the library to take inspiration from :)

Hi Daniel, sorry I forgot I left this comment. I did look but could not find a way use the custom themes that would satisfy my requirements, maybe because of my lack of insight on how it can be done. This library is one if the better ones I have seen.

I eventually created my own, simple creation.

Happy to hear it! I’m mostly doing SwiftUI these days so this project is only worked on when needed :)