Bump LePip's Collection Packages to Latest Commits (#1542)
* Bump `CollectionVGrid` to `70db2318ce64d49aa8b536e0623b96cb323fbdf1` * Bump CollectionHStack as well.
This commit is contained in:
parent
942a926576
commit
43eaeee011
|
@ -58,7 +58,7 @@ extension SeriesEpisodeSelector {
|
||||||
|
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
|
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
|
||||||
guard let playButtonItem else { return }
|
guard let playButtonItem else { return }
|
||||||
proxy.scrollTo(element: playButtonItem, animated: false)
|
proxy.scrollTo(id: playButtonItem.unwrappedIDHashOrZero, animated: false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7922,16 +7922,16 @@
|
||||||
isa = XCRemoteSwiftPackageReference;
|
isa = XCRemoteSwiftPackageReference;
|
||||||
repositoryURL = "https://github.com/LePips/CollectionVGrid";
|
repositoryURL = "https://github.com/LePips/CollectionVGrid";
|
||||||
requirement = {
|
requirement = {
|
||||||
branch = main;
|
kind = revision;
|
||||||
kind = branch;
|
revision = 70db2318ce64d49aa8b536e0623b96cb323fbdf1;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
E1A09F732D05935100835265 /* XCRemoteSwiftPackageReference "CollectionHStack" */ = {
|
E1A09F732D05935100835265 /* XCRemoteSwiftPackageReference "CollectionHStack" */ = {
|
||||||
isa = XCRemoteSwiftPackageReference;
|
isa = XCRemoteSwiftPackageReference;
|
||||||
repositoryURL = "https://github.com/LePips/CollectionHStack";
|
repositoryURL = "https://github.com/LePips/CollectionHStack";
|
||||||
requirement = {
|
requirement = {
|
||||||
branch = main;
|
kind = revision;
|
||||||
kind = branch;
|
revision = 03dc666e8b20ec216fda60f55ccc0eeaabbc5fad;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
E1DC9812296DC06200982F06 /* XCRemoteSwiftPackageReference "PulseLogHandler" */ = {
|
E1DC9812296DC06200982F06 /* XCRemoteSwiftPackageReference "PulseLogHandler" */ = {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"originHash" : "59e91adc6b66cec011d85f8b5356b72b51a6e772e85bad7fbeac490d39e91f45",
|
"originHash" : "44d87a45bd21720bc457afc9350e1268808e629c432ce75d0e6c4c26ce3b67ce",
|
||||||
"pins" : [
|
"pins" : [
|
||||||
{
|
{
|
||||||
"identity" : "blurhashkit",
|
"identity" : "blurhashkit",
|
||||||
|
@ -24,8 +24,7 @@
|
||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/LePips/CollectionHStack",
|
"location" : "https://github.com/LePips/CollectionHStack",
|
||||||
"state" : {
|
"state" : {
|
||||||
"branch" : "main",
|
"revision" : "03dc666e8b20ec216fda60f55ccc0eeaabbc5fad"
|
||||||
"revision" : "00beb78cc570ee1014a92eb1cd7a60c099bce5ec"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -33,8 +32,7 @@
|
||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/LePips/CollectionVGrid",
|
"location" : "https://github.com/LePips/CollectionVGrid",
|
||||||
"state" : {
|
"state" : {
|
||||||
"branch" : "main",
|
"revision" : "70db2318ce64d49aa8b536e0623b96cb323fbdf1"
|
||||||
"revision" : "4b1591321339481756af6157c9205051d7fe3040"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -47,7 +47,7 @@ extension SeriesEpisodeSelector {
|
||||||
// good enough?
|
// good enough?
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
|
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
|
||||||
guard let playButtonItem else { return }
|
guard let playButtonItem else { return }
|
||||||
proxy.scrollTo(element: playButtonItem, animated: false)
|
proxy.scrollTo(id: playButtonItem.unwrappedIDHashOrZero, animated: false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,7 +62,7 @@ extension VideoPlayer.Overlay {
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
if let currentChapter = viewModel.chapter(from: currentProgressHandler.seconds) {
|
if let currentChapter = viewModel.chapter(from: currentProgressHandler.seconds) {
|
||||||
collectionHStackProxy.scrollTo(element: currentChapter)
|
collectionHStackProxy.scrollTo(id: currentChapter.unwrappedIDHashOrZero)
|
||||||
}
|
}
|
||||||
} label: {
|
} label: {
|
||||||
Text(L10n.current)
|
Text(L10n.current)
|
||||||
|
@ -75,6 +75,7 @@ extension VideoPlayer.Overlay {
|
||||||
|
|
||||||
CollectionHStack(
|
CollectionHStack(
|
||||||
uniqueElements: viewModel.chapters,
|
uniqueElements: viewModel.chapters,
|
||||||
|
id: \.unwrappedIDHashOrZero,
|
||||||
minWidth: 200
|
minWidth: 200
|
||||||
) { chapter in
|
) { chapter in
|
||||||
ChapterButton(chapter: chapter)
|
ChapterButton(chapter: chapter)
|
||||||
|
@ -85,7 +86,7 @@ extension VideoPlayer.Overlay {
|
||||||
guard newValue == .chapters else { return }
|
guard newValue == .chapters else { return }
|
||||||
|
|
||||||
if let currentChapter = viewModel.chapter(from: currentProgressHandler.seconds) {
|
if let currentChapter = viewModel.chapter(from: currentProgressHandler.seconds) {
|
||||||
collectionHStackProxy.scrollTo(element: currentChapter, animated: false)
|
collectionHStackProxy.scrollTo(id: currentChapter, animated: false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.trackingSize($size)
|
.trackingSize($size)
|
||||||
|
|
Loading…
Reference in New Issue