Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Releases: michael811125/InfiniteScrollView-with-UniTask

Release v1.5.1

07 Nov 18:39
Compare
Choose a tag to compare

[1.5.1] - 2023-11-08

  • Added OnSnap method in InfiniteCell.
    public virtual void OnSnap()
  • Modified OnClick can override in InfiniteCell.
    public virtual void OnClick()

Release v1.5.0

07 Nov 14:31
Compare
Choose a tag to compare

[1.5.0] - 2023-11-07

  • Added DataOrder.
    public enum DataOrder
    {
        Normal,
        Reverse
    }
  • Added lastVisibleRangeSize param in InfiniteScrollView.
    public float lastVisibleRangeSize { get; protected set; }
  • Renamed RefreshCellVisibilityWithCheck to RefreshVisibleCells in InfiniteScrollView.
    public void RefreshVisibleCells()
  • Renamed RefreshCellVisibility to DoRefreshVisibleCells in InfiniteScrollView.
    protected abstract void DoRefreshVisibleCells();
  • Removed RefreshAndCheckVisibleInfo from InfiniteScrollView.
  • Optimized code and refresh efficiency.

Release v1.4.1

03 Nov 08:09
Compare
Choose a tag to compare

[1.4.1] - 2023-11-03

  • Fixed Refresh method default value bug issue (disabledRefreshCells = false).
  • Added SnapFirst and SnapMiddle in InfiniteScrollView.
    public void SnapFirst(float duration)
    public void SnapMiddle(float duration)

NEW!!! (Breaking Changes)
Check it out v1.4.0 CHANGELOG

Release v1.4.0

02 Nov 22:05
Compare
Choose a tag to compare

[1.4.0] - 2023-11-03 (Breaking Changes)

  • Modified namespace HowTungTung to InfiniteScrollViews.
  • Modified RefreshCellVisibility access modifier to protected.
    protected abstract void RefreshCellVisibility();
  • Modified Add, Insert, Remove, Refresh, Clear methods (Removed async behaviour, won't auto InitializePool).
  • Added RefreshCellVisibilityWithCheck method in InfiniteScrollView.
    public void RefreshCellVisibilityWithCheck()
  • Added visibleCount param in InfiniteScrollView.
    public int visibleCount { get; protected set; }
  • Added lastMaxVisibleCount param in InfiniteScrollView.
    public int lastMaxVisibleCount { get; protected set; }
  • Added isVisibleRangeFilled param in InfiniteScrollView.
    public bool isVisibleRangeFilled { get; protected set; }
  • Added DataCount() method in InfiniteScrollView.
    public int DataCount()
  • Added param for Refresh(bool disabledRefreshCells = false) method of InfiniteScrollView.
    /// <summary>
    /// Refresh scrollView (doesn't need to await, if scrollView already initialized)
    /// </summary>
    /// <param name="disabledRefreshCells">Disable refresh cells, when disabled will mark flag to refresh all at next scrolling.</param>
    /// <returns></returns>
    public abstract UniTask Refresh(bool disabledRefreshCells = false)
  • Optimized code.

※Note: If you add data and don't want to refresh cells every times. You can determines infiniteScrollView.isVisibleRangeFilled == true and set disabledRefreshCells = true, will help you to mark flag and refresh once all at next scrolling.

    public void AddCellData() 
    {
        var data = new InfiniteCellData(new Vector2(100, 100));
        infiniteScrollView.Add(data);
        if(!infiniteScrollView.isVisibleRangeFilled) infiniteScrollView.Refresh();
        else infiniteScrollView.Refresh(true);
    }

Release v1.3.1

01 Nov 05:18
Compare
Choose a tag to compare

[1.3.1] - 2023-11-01

  • Fixed determines.
  • Modified Samples.
  • Optimzied Recycle and SetupCell procedure.

Release v1.3.0

31 Oct 13:03
Compare
Choose a tag to compare

[1.3.0] - 2023-10-31

  • Modified All infiniteScrollViews can auto calculate direction by content and cell pivot.
  • Modified Samples (Normal direction and Reverse direction).
  • Added ScrollToLeft and ScrollToRight (Horizontal).
    public void ScrollToLeft()
    public void ScrollToRight()
  • Added InfiniteScrollView IsAtLeft and IsAtRight.
    public bool IsAtLeft()
    public bool IsAtRight()
  • Rename InfiniteScrollView IsScrollToTop method name to IsAtTop.
    public bool IsAtTop()
  • Rename InfiniteScrollView IsScrollToBottom method name to IsAtBottom.
    public bool IsAtBottom()
  • Removed ScrollToTarget method from InfiniteScrollView.
  • Optimized code.

Release v1.2.1

24 Oct 10:46
Compare
Choose a tag to compare

[1.2.1] - 2023-10-24

  • Modified InfiniteCell method name (OnUpdate change to OnRefresh more clear).
    public virtual void OnRefresh() { }
  • Modified callback names in InfiniteScrollView.
    • onRectTransformUpdate change to onRectTransformDimensionsChanged.
    • onRefresh change onRefreshed.

Release v1.2.0

20 Oct 13:06
Compare
Choose a tag to compare

[1.2.0] - 2023-10-20

  • Added [initializePoolOnAwake] trigger for InfiniteScrollView.
  • Added OnClick in InfiniteCell for button event (Can assign event on button click).
  • Modified InfiniteScrollView method name (Initialize change to InitializePool).
    public virtual async UniTask InitializePool(object args = null)
  • Modified InfiniteCell method name (Initialize change to OnCreate).
    public virtual async UniTask OnCreate(object args) { }
  • Modified InfiniteCellData index access modifier (Only internal can set).
  • Optimizd index determines.

Release v1.1.0

17 Oct 08:05
Compare
Choose a tag to compare

[1.1.0] - 2023-10-17

  • Added Cell script editor.

Release v1.0.1

17 Oct 05:08
Compare
Choose a tag to compare

[1.0.1] - 2023-10-17

  • Fixed cellList count increase bug issue.
  • Optimized InfiniteScrollView.