From dfd1bb4feed73114c2fdb165705685bcbe399b77 Mon Sep 17 00:00:00 2001 From: Valentin Perignon Date: Fri, 9 Jun 2023 13:23:50 +0200 Subject: [PATCH] fix(MailButton): Button's height changes when the loader is visible --- Mail/Components/MailButton.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Mail/Components/MailButton.swift b/Mail/Components/MailButton.swift index 96db5370b..572e5041d 100644 --- a/Mail/Components/MailButton.swift +++ b/Mail/Components/MailButton.swift @@ -113,9 +113,9 @@ struct MailButton: View { } } .opacity(loading ? 0 : 1) - if loading { - LoadingButtonProgressView(style: style) - } + + LoadingButtonProgressView(style: style) + .opacity(loading ? 1 : 0) } .frame(maxWidth: fullWidth ? UIConstants.componentsMaxWidth : nil) }