toast-swift
toast-swift copied to clipboard
Number of lines option
It truncates the texts when they are too long. It would be good if we can set the number of lines in the config. Also, minimum scale factor can be useful too.
Especially needed when you don't use a subtitle but a long title.
Any updates?
Have you tried Configuration to set number of lines in title and subtitle? default is 1 but you can modify it
how to add numberOfLines in ToastConfiguration?
Number of lines is natively supported:
let toast = Toast.text("Safari pasted from Notes", viewConfig: .init(
titleNumberOfLines: 2,
subtitleNumberOfLines: 3
))
toast.show()