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 } //--------------------------------------------------