-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from daangn/feature/ben/MBP-4700-next-batch-tr…
…igger-2 MBP-4700 Pagination 트리거 인터페이스를 변경 및 개선해요. (BreakingChanges)
- Loading branch information
Showing
8 changed files
with
380 additions
and
229 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// Copyright (c) 2024 Danggeun Market Inc. | ||
// | ||
|
||
import Foundation | ||
|
||
/// An event that triggers when the user scrolls to the end of a list view. | ||
public struct ReachedEndEvent: ListingViewEvent { | ||
|
||
/// Context for the `ReachedEndEvent`. | ||
public struct EventContext {} | ||
|
||
/// Defines the offset from the end of the list view that will trigger the event. | ||
public enum OffsetFromEnd { | ||
/// Triggers the event when the user scrolls within a multiple of the height of the content view. | ||
case relativeToContainerSize(multiplier: CGFloat) | ||
/// Triggers the event when the user scrolls within an absolute point value from the end. | ||
case absolute(CGFloat) | ||
} | ||
|
||
/// The offset from the end of the list view that will trigger the event. | ||
let offset: OffsetFromEnd | ||
/// The handler that will be called when the event is triggered. | ||
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
27 changes: 0 additions & 27 deletions
27
Sources/KarrotListKit/NextBatchTrigger/NextBatchContext.swift
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
Sources/KarrotListKit/NextBatchTrigger/NextBatchTrigger.swift
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.