updated defaults in reset

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-04-04 10:10:48 -05:00
parent cf4f145137
commit 51c8a8059f

View File

@ -232,26 +232,29 @@ public class Notification: View {
super.reset()
titleLabel.reset()
titleLabel.textStyle = .boldBodyLarge
titleLabel.text = ""
titleLabel.textStyle = UIDevice.isIPad ? .boldBodyLarge : .boldBodySmall
subTitleLabel.reset()
subTitleLabel.textStyle = .bodyLarge
subTitleLabel.textStyle = UIDevice.isIPad ? .bodyLarge : .bodySmall
buttonsView.reset()
buttonsView.buttonPosition = .left
primaryButton.reset()
secondaryButton.reset()
primaryButtonModel = nil
secondaryButtonModel = nil
type = .info
typeIcon.size = .medium
typeIcon.size = UIDevice.isIPad ? .medium : .small
typeIcon.name = .infoBold
closeButton.size = .medium
onCloseClick = nil
closeButton.size = UIDevice.isIPad ? .medium : .small
closeButton.name = .close
layout = .vertical
hideCloseButton = false
fullBleed = false
}
//--------------------------------------------------