Skip to content

[Liquid Glass]: Buttons#115

Merged
mikhailChelbaev merged 2 commits into
devfrom
liquid-glass/buttons
Jun 5, 2026
Merged

[Liquid Glass]: Buttons#115
mikhailChelbaev merged 2 commits into
devfrom
liquid-glass/buttons

Conversation

@mikhailChelbaev

Copy link
Copy Markdown
Collaborator

No description provided.

@mikhailChelbaev

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0153bfe8d8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

/// A Boolean value indicating whether the button is pressed.
public private(set) var isPressed: Bool = false {
didSet {
guard self.model.isTapAnimationEnabled else { return }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reset the press transform when the button becomes noninteractive

If the tap action synchronously sets model.isLoading = true or disables the button, touchesEnded runs action() before the deferred isPressed = false; at that point isTapAnimationEnabled is false, so this guard skips the animation back to .identity and leaves the UIKit button permanently scaled down. This affects the common “tap, then show loading state” path for solid/blur buttons, so the reset path should still clear the transform even when the new model is noninteractive.

Useful? React with 👍 / 👎.

Base automatically changed from liquid-glass/cards to dev June 5, 2026 16:10
@mikhailChelbaev mikhailChelbaev merged commit 413b69c into dev Jun 5, 2026
1 check passed
@mikhailChelbaev mikhailChelbaev deleted the liquid-glass/buttons branch June 5, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant