-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
Sources/KarrotListKit/Event/List/DidEndDeceleratingEvent.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// Copyright (c) 2024 Danggeun Market Inc. | ||
// | ||
|
||
import UIKit | ||
|
||
/// This structure encapsulates the did end decelerating event information and contains a closure object for handling the did end decelerating event. | ||
public struct DidEndDeceleratingEvent: ListingViewEvent { | ||
public struct EventContext { | ||
|
||
/// The collectionView object that’s decelerating the scrolling of the content view. | ||
public let collectionView: UICollectionView | ||
} | ||
|
||
/// A closure that's called when the collection view ended decelerating the scrolling movement. | ||
let handler: (EventContext) -> Void | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters