scalessec/Toast-Swift

Multiple are not working its showing only one line.

SanaboinaPrasad opened this issue · 0 comments

i am able to use for one line messages but not for multiple line.
var style = ToastStyle()
style.messageColor = .white
style.backgroundColor = .darkGray
style.maxHeightPercentage = 1.0
style.maxWidthPercentage = 0.9
style.horizontalPadding = 10.0
style.messageAlignment = .center
style.messageNumberOfLines = 2
style.displayShadow = true

    style.messageFont = UIFont.systemFont(ofSize: 14, weight: .regular)
    style.messageNumberOfLines = 0
    self.view.makeToast("\(string)", duration: 2.0, position: .bottom, title: nil, image: nil, style: style)
    ToastManager.shared.isTapToDismissEnabled = false
    ToastManager.shared.isQueueEnabled = true