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() super.reset()
titleLabel.reset() titleLabel.reset()
titleLabel.textStyle = .boldBodyLarge titleLabel.text = ""
titleLabel.textStyle = UIDevice.isIPad ? .boldBodyLarge : .boldBodySmall
subTitleLabel.reset() subTitleLabel.reset()
subTitleLabel.textStyle = .bodyLarge subTitleLabel.textStyle = UIDevice.isIPad ? .bodyLarge : .bodySmall
buttonsView.reset() buttonsView.reset()
buttonsView.buttonPosition = .left buttonsView.buttonPosition = .left
primaryButton.reset() primaryButtonModel = nil
secondaryButton.reset() secondaryButtonModel = nil
type = .info type = .info
typeIcon.size = .medium typeIcon.size = UIDevice.isIPad ? .medium : .small
typeIcon.name = .infoBold typeIcon.name = .infoBold
closeButton.size = .medium onCloseClick = nil
closeButton.size = UIDevice.isIPad ? .medium : .small
closeButton.name = .close closeButton.name = .close
layout = .vertical layout = .vertical
hideCloseButton = false hideCloseButton = false
fullBleed = false
} }
//-------------------------------------------------- //--------------------------------------------------