scalessec / Toast

An Objective-C category that adds toast notifications to the UIView object class.
MIT License
3.87k stars 714 forks source link

Restrain the width of toast #108

Closed quazarteam closed 7 years ago

quazarteam commented 7 years ago

Hello!

Thanks for this excellent component. The only question is how can i make toast with certain width, or restrain it to not be more than XXX pixels?

right now, it seems to take as much width as it is possible.

scalessec commented 7 years ago

Please don't open issues for these types of questions. You can't set an explicit width, but you can use maxWidthPercentage in CSToastStyle to set the maximum width percentage relative to the Toast's superview.