Skip to content

Custom Update Animations - #539

Merged
kyleve merged 5 commits into
mainfrom
kve/allow-faster-animationds
Jul 31, 2024
Merged

Custom Update Animations#539
kyleve merged 5 commits into
mainfrom
kve/allow-faster-animationds

Conversation

@kyleve

@kylevekyleve commented Jul 15, 2024

Copy link
Copy Markdown
Contributor

In this PR we introduce a way to customize the animation speed of a list. We want this for the checkout applet carts, where the default is too slow.

Checklist

Please do the following before merging:

  • Ensure any public-facing changes are reflected in the changelog. Include them in the Main section.

Comment threadListableUI/Sources/ListAnimation.swift
@kylevekyleve changed the title [WIP DNR] Custom AnimationsCustom Update AnimationsJul 23, 2024
@kyleve
kyleve marked this pull request as ready for review July 23, 2024 00:59
@kyleve
kyleve requested a review from a teamJuly 23, 2024 00:59
}

/// A faster animation than the default `UICollectionView` animation.
public static let fast : Self = .init { animations in

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These types of names have a bad habit of scaling weirdly: fast, faster, fastest, xxxFastest. Probably not a big deal but might be worth spending a few minutes brainstorming alternative naming conventions.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Hmm, true. I could mirror the Market-style naming of fast10, fast20, or something similar?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah not bad. Or replace fast with duration? e.g. duration{n}?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

I like that!

@kylevekyleveJul 31, 2024

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Actually, hmm, the more I think about it I'm not convinced this is super understandable honestly if you're not familiar with our Market token naming. I'm just going to leave this as is given it's unlikely we'll ever want more variants, I imagine... (famous last words)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah true. No big deal!

@kyleve
kyleve enabled auto-merge (squash) July 31, 2024 23:30
@kyleve
kyleve merged commit 4d8a62a into mainJul 31, 2024
@kyleve
kyleve deleted the kve/allow-faster-animationds branch July 31, 2024 23:35
kyleve pushed a commit that referenced this pull request Aug 1, 2024
* origin/main:
Prepare 14.3.0 (#540)
Custom Update Animations (#539)
Update version to 14.2.0
Prepare 14.2.0 release, which contains a Blueprint update
Bumping versions to 14.1.0 (#535)
reorder control now proxies accessibility into a seperate element (#533)
Prepare 14.0.3
Fix a crash that could occur during cell reuse if a list contained different types of headers. The wrong ObjectIdentifier was being compared and stored.
Get a repro for the reordering crash reported in #market-ios
chore: Generated documentation now uses a static copyright notice to avoid noisy diffs (#530)
Bumping versions to 15.0.2
fix: Fix tap gesture swallowing touches in swipe actions view
Bump to 14.0.1
Fix SPM Blueprint dependency
Release 14.0.0, update BlueprintUI to 3.0.0 (#525)
chore: iOS 15 deployment target bump [UI-5187] (#524)
chore: Bump CI to Xcode 15.1. Bump gems. [UI-5186] (#523)
fix: don't cancel touches in view for tap gesture recognizer
Revert weak change
Revert "Revert "Supplementary Tracking Fixes (#433)""
kyleve pushed a commit that referenced this pull request Aug 6, 2024
…rovements
* origin/main: (33 commits)
Prepare 14.3.0 (#540)
Custom Update Animations (#539)
Update version to 14.2.0
Prepare 14.2.0 release, which contains a Blueprint update
Bumping versions to 14.1.0 (#535)
reorder control now proxies accessibility into a seperate element (#533)
Prepare 14.0.3
Fix a crash that could occur during cell reuse if a list contained different types of headers. The wrong ObjectIdentifier was being compared and stored.
Get a repro for the reordering crash reported in #market-ios
chore: Generated documentation now uses a static copyright notice to avoid noisy diffs (#530)
Bumping versions to 15.0.2
fix: Fix tap gesture swallowing touches in swipe actions view
Bump to 14.0.1
Fix SPM Blueprint dependency
Release 14.0.0, update BlueprintUI to 3.0.0 (#525)
chore: iOS 15 deployment target bump [UI-5187] (#524)
chore: Bump CI to Xcode 15.1. Bump gems. [UI-5186] (#523)
fix: don't cancel touches in view for tap gesture recognizer
fix: don't cancel touches in view for tap gesture recognizer
Revert weak change
...
Sign up for freeto 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.

2 participants

@kyleve@robmaceachern