diff --git a/Sources/Update/UpdatePill.swift b/Sources/Update/UpdatePill.swift index 4854e4bc..ace5eb9b 100644 --- a/Sources/Update/UpdatePill.swift +++ b/Sources/Update/UpdatePill.swift @@ -11,17 +11,18 @@ struct UpdatePill: View { var body: some View { let state = model.effectiveState - if !state.isIdle { - pillButton - .popover( - isPresented: $showPopover, - attachmentAnchor: .rect(.bounds), - arrowEdge: .top - ) { - UpdatePopoverView(model: model) - } - .transition(.opacity.combined(with: .scale(scale: 0.95))) - } + let visible = !state.isIdle + pillButton + .popover( + isPresented: $showPopover, + attachmentAnchor: .rect(.bounds), + arrowEdge: .top + ) { + UpdatePopoverView(model: model) + } + .opacity(visible ? 1 : 0) + .frame(width: visible ? nil : 0, height: visible ? nil : 0) + .clipped() } @ViewBuilder