From 51c8a8059f6ecedc6ba147f122e78c7c4e6b8d2e Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 4 Apr 2023 10:10:48 -0500 Subject: [PATCH] updated defaults in reset Signed-off-by: Matt Bruce --- VDS/Components/Notification/Notification.swift | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/VDS/Components/Notification/Notification.swift b/VDS/Components/Notification/Notification.swift index 427b0ed8..fdfe5b74 100644 --- a/VDS/Components/Notification/Notification.swift +++ b/VDS/Components/Notification/Notification.swift @@ -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 } //--------------------------------------------------