ra1028 / Carbon

🚴 A declarative library for building component-based user interfaces in UITableView and UICollectionView.

Home Page:https://ra1028.github.io/Carbon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make updater can insert any processes before `CATransaction.commit`

ra1028 opened this issue · comments

Checklist

Description

Make updater can insert any processes before CATransaction.commit by overriding update method in updater.
This allows user to insert a arbitrary process sequentially on the run loop.

Motivation and Context

Wants to adjust the content offset after updating for implement the comment UI.
Currently, runloop is divided by CATransaction, and the drawing glitches for a moment.

Proposed Solution

Split the code in a transaction into another method to make can be overridden.

Gif

comment