mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 05:23:41 +00:00
Remove unused gesture
This commit is contained in:
parent
f828943982
commit
e8dbf46e14
@ -1,22 +0,0 @@
|
||||
import SwiftUI
|
||||
|
||||
extension View {
|
||||
func onSwipeGesture(
|
||||
up: @escaping () -> Void = {},
|
||||
down: @escaping () -> Void = {}
|
||||
) -> some View {
|
||||
gesture(
|
||||
DragGesture(minimumDistance: 10)
|
||||
.onEnded { gesture in
|
||||
let translation = gesture.translation
|
||||
|
||||
if abs(translation.height) > 100_000 {
|
||||
return
|
||||
}
|
||||
|
||||
let isUp = translation.height < 0
|
||||
isUp ? up() : down()
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
@ -689,8 +689,6 @@
|
||||
37D526DE2720AC4400ED2F5E /* VideosAPI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37D526DD2720AC4400ED2F5E /* VideosAPI.swift */; };
|
||||
37D526DF2720AC4400ED2F5E /* VideosAPI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37D526DD2720AC4400ED2F5E /* VideosAPI.swift */; };
|
||||
37D526E02720AC4400ED2F5E /* VideosAPI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37D526DD2720AC4400ED2F5E /* VideosAPI.swift */; };
|
||||
37D526E32720B4BE00ED2F5E /* View+SwipeGesture.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37D526E22720B4BE00ED2F5E /* View+SwipeGesture.swift */; };
|
||||
37D526E42720B4BE00ED2F5E /* View+SwipeGesture.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37D526E22720B4BE00ED2F5E /* View+SwipeGesture.swift */; };
|
||||
37DD87C7271C9CFE0027CBF9 /* PlayerStreams.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37DD87C6271C9CFE0027CBF9 /* PlayerStreams.swift */; };
|
||||
37DD87C8271C9CFE0027CBF9 /* PlayerStreams.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37DD87C6271C9CFE0027CBF9 /* PlayerStreams.swift */; };
|
||||
37DD87C9271C9CFE0027CBF9 /* PlayerStreams.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37DD87C6271C9CFE0027CBF9 /* PlayerStreams.swift */; };
|
||||
@ -1183,7 +1181,6 @@
|
||||
37D4B19626717E1500C925CA /* Video.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Video.swift; sourceTree = "<group>"; };
|
||||
37D4B1AE26729DEB00C925CA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
37D526DD2720AC4400ED2F5E /* VideosAPI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VideosAPI.swift; sourceTree = "<group>"; };
|
||||
37D526E22720B4BE00ED2F5E /* View+SwipeGesture.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "View+SwipeGesture.swift"; sourceTree = "<group>"; };
|
||||
37D9169A27388A81002B1BAA /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
|
||||
37DD87C6271C9CFE0027CBF9 /* PlayerStreams.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlayerStreams.swift; sourceTree = "<group>"; };
|
||||
37DD9DA22785BBC900539416 /* NoCommentsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NoCommentsView.swift; sourceTree = "<group>"; };
|
||||
@ -1916,7 +1913,6 @@
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
3788AC2126F683AB00F6BAA9 /* Favorites */,
|
||||
37D526E12720B49200ED2F5E /* Gestures */,
|
||||
3761AC0526F0F96100AA496F /* Modifiers */,
|
||||
371AAE2326CEB9E800901972 /* Navigation */,
|
||||
371AAE2426CEBA4100901972 /* Player */,
|
||||
@ -2042,14 +2038,6 @@
|
||||
path = Model;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
37D526E12720B49200ED2F5E /* Gestures */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
37D526E22720B4BE00ED2F5E /* View+SwipeGesture.swift */,
|
||||
);
|
||||
path = Gestures;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
37DD9DAE2785D58D00539416 /* RefreshControl */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
@ -2863,7 +2851,6 @@
|
||||
373CFAEB26975CBF003CB2C6 /* PlaylistFormView.swift in Sources */,
|
||||
372915E62687E3B900F5A35B /* Defaults.swift in Sources */,
|
||||
37E084AC2753D95F00039B7D /* AccountsNavigationLink.swift in Sources */,
|
||||
37D526E32720B4BE00ED2F5E /* View+SwipeGesture.swift in Sources */,
|
||||
37732FF42703D32400F04329 /* Sidebar.swift in Sources */,
|
||||
37D4B19726717E1500C925CA /* Video.swift in Sources */,
|
||||
37484C2926FC83FF00287258 /* AccountForm.swift in Sources */,
|
||||
@ -3011,7 +2998,6 @@
|
||||
376578922685490700D4EA09 /* PlaylistsView.swift in Sources */,
|
||||
37F9619C27BD89E000058149 /* TapRecognizerViewModifier.swift in Sources */,
|
||||
37484C2626FC83E000287258 /* InstanceForm.swift in Sources */,
|
||||
37D526E42720B4BE00ED2F5E /* View+SwipeGesture.swift in Sources */,
|
||||
3751BA7E27E63F1D007B1A60 /* MPVOGLView.swift in Sources */,
|
||||
377FC7E4267A084E00A6BBAF /* SearchView.swift in Sources */,
|
||||
37B81AFA26D2C9A700675966 /* VideoPlayerSizeModifier.swift in Sources */,
|
||||
|
Loading…
Reference in New Issue
Block a user