-
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 #9 from daangn/feature/ray/prefetchable-component
NO-JIRA `ComponentPrefetchable` 네이밍을 변경해요
- Loading branch information
Showing
5 changed files
with
26 additions
and
22 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
16 changes: 0 additions & 16 deletions
16
Sources/KarrotListKit/Prefetching/CollectionViewPrefetchingPlugin.swift
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
Sources/KarrotListKit/Prefetching/Plugins/CollectionViewPrefetchingPlugin.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,10 @@ | ||
// | ||
// Copyright (c) 2024 Danggeun Market Inc. | ||
// | ||
|
||
import Combine | ||
import Foundation | ||
|
||
public protocol CollectionViewPrefetchingPlugin { | ||
func prefetch(with component: ComponentResourcePrefetchable) -> AnyCancellable? | ||
} |
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
11 changes: 11 additions & 0 deletions
11
Sources/KarrotListKit/Prefetching/PrefetchableComponent.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,11 @@ | ||
// | ||
// Copyright (c) 2024 Danggeun Market Inc. | ||
// | ||
|
||
import Foundation | ||
|
||
public protocol ComponentResourcePrefetchable {} | ||
|
||
public protocol ComponentRemoteImagePrefetchable: ComponentResourcePrefetchable { | ||
var remoteImageURLs: [URL] { get } | ||
} |