mirror of
https://github.com/yattee/yattee.git
synced 2025-12-15 12:38:15 +00:00
Compare commits
1 Commits
fullscreen
...
update-int
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e02b08933 |
@@ -5,7 +5,6 @@ final class ConstrolsSettingsGroupExporter: SettingsGroupExporter {
|
|||||||
override var globalJSON: JSON {
|
override var globalJSON: JSON {
|
||||||
[
|
[
|
||||||
"avPlayerUsesSystemControls": Defaults[.avPlayerUsesSystemControls],
|
"avPlayerUsesSystemControls": Defaults[.avPlayerUsesSystemControls],
|
||||||
"fullscreenPlayerGestureEnabled": Defaults[.fullscreenPlayerGestureEnabled],
|
|
||||||
"horizontalPlayerGestureEnabled": Defaults[.horizontalPlayerGestureEnabled],
|
"horizontalPlayerGestureEnabled": Defaults[.horizontalPlayerGestureEnabled],
|
||||||
"seekGestureSensitivity": Defaults[.seekGestureSensitivity],
|
"seekGestureSensitivity": Defaults[.seekGestureSensitivity],
|
||||||
"seekGestureSpeed": Defaults[.seekGestureSpeed],
|
"seekGestureSpeed": Defaults[.seekGestureSpeed],
|
||||||
|
|||||||
@@ -9,10 +9,6 @@ struct ConstrolsSettingsGroupImporter {
|
|||||||
Defaults[.avPlayerUsesSystemControls] = avPlayerUsesSystemControls
|
Defaults[.avPlayerUsesSystemControls] = avPlayerUsesSystemControls
|
||||||
}
|
}
|
||||||
|
|
||||||
if let fullscreenPlayerGestureEnabled = json["fullscreenPlayerGestureEnabled"].bool {
|
|
||||||
Defaults[.fullscreenPlayerGestureEnabled] = fullscreenPlayerGestureEnabled
|
|
||||||
}
|
|
||||||
|
|
||||||
if let horizontalPlayerGestureEnabled = json["horizontalPlayerGestureEnabled"].bool {
|
if let horizontalPlayerGestureEnabled = json["horizontalPlayerGestureEnabled"].bool {
|
||||||
Defaults[.horizontalPlayerGestureEnabled] = horizontalPlayerGestureEnabled
|
Defaults[.horizontalPlayerGestureEnabled] = horizontalPlayerGestureEnabled
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,7 +116,6 @@ extension Defaults.Keys {
|
|||||||
|
|
||||||
static let avPlayerUsesSystemControls = Key<Bool>("avPlayerUsesSystemControls", default: Constants.isTvOS)
|
static let avPlayerUsesSystemControls = Key<Bool>("avPlayerUsesSystemControls", default: Constants.isTvOS)
|
||||||
static let horizontalPlayerGestureEnabled = Key<Bool>("horizontalPlayerGestureEnabled", default: true)
|
static let horizontalPlayerGestureEnabled = Key<Bool>("horizontalPlayerGestureEnabled", default: true)
|
||||||
static let fullscreenPlayerGestureEnabled = Key<Bool>("fullscreenPlayerGestureEnabled", default: true)
|
|
||||||
static let seekGestureSensitivity = Key<Double>("seekGestureSensitivity", default: 30.0)
|
static let seekGestureSensitivity = Key<Double>("seekGestureSensitivity", default: 30.0)
|
||||||
static let seekGestureSpeed = Key<Double>("seekGestureSpeed", default: 0.5)
|
static let seekGestureSpeed = Key<Double>("seekGestureSpeed", default: 0.5)
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ struct AppSidebarNavigation: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
content.introspect(.viewController, on: .iOS(.v15, .v16, .v17)) { viewController in
|
content.introspect(.viewController, on: .iOS(.v15, .v16, .v17, .v18)) { viewController in
|
||||||
// workaround for an empty supplementary view on launch
|
// workaround for an empty supplementary view on launch
|
||||||
// the supplementary view is determined by the default selection inside the
|
// the supplementary view is determined by the default selection inside the
|
||||||
// primary view, but the primary view is not loaded so its selection is not read
|
// primary view, but the primary view is not loaded so its selection is not read
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ extension VideoPlayerView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Toggle fullscreen on upward drag only when not disabled
|
// Toggle fullscreen on upward drag only when not disabled
|
||||||
if fullscreenPlayerGestureEnabled, verticalDrag < -50 {
|
if verticalDrag < -50 {
|
||||||
player.toggleFullScreenAction()
|
player.toggleFullScreenAction()
|
||||||
disableGestureTemporarily()
|
disableGestureTemporarily()
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ struct VideoPlayerView: View {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
@Default(.horizontalPlayerGestureEnabled) var horizontalPlayerGestureEnabled
|
@Default(.horizontalPlayerGestureEnabled) var horizontalPlayerGestureEnabled
|
||||||
@Default(.fullscreenPlayerGestureEnabled) var fullscreenPlayerGestureEnabled
|
|
||||||
@Default(.seekGestureSpeed) var seekGestureSpeed
|
@Default(.seekGestureSpeed) var seekGestureSpeed
|
||||||
@Default(.seekGestureSensitivity) var seekGestureSensitivity
|
@Default(.seekGestureSensitivity) var seekGestureSensitivity
|
||||||
@Default(.playerSidebar) var playerSidebar
|
@Default(.playerSidebar) var playerSidebar
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ struct FocusableSearchTextField: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
SearchTextField()
|
SearchTextField()
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
.introspect(.textField, on: .macOS(.v12, .v13, .v14)) { textField in
|
.introspect(.textField, on: .macOS(.v12, .v13, .v14, .v15)) { textField in
|
||||||
state.textField = textField
|
state.textField = textField
|
||||||
}
|
}
|
||||||
.onAppear {
|
.onAppear {
|
||||||
@@ -18,7 +18,7 @@ struct FocusableSearchTextField: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#elseif os(iOS)
|
#elseif os(iOS)
|
||||||
.introspect(.textField, on: .iOS(.v15, .v16, .v17)) { textField in
|
.introspect(.textField, on: .iOS(.v15, .v16, .v17, .v18)) { textField in
|
||||||
state.textField = textField
|
state.textField = textField
|
||||||
}
|
}
|
||||||
.onChange(of: state.focused) { newValue in
|
.onChange(of: state.focused) { newValue in
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ struct PlayerControlsSettings: View {
|
|||||||
@Default(.playerControlsLayout) private var playerControlsLayout
|
@Default(.playerControlsLayout) private var playerControlsLayout
|
||||||
@Default(.fullScreenPlayerControlsLayout) private var fullScreenPlayerControlsLayout
|
@Default(.fullScreenPlayerControlsLayout) private var fullScreenPlayerControlsLayout
|
||||||
@Default(.horizontalPlayerGestureEnabled) private var horizontalPlayerGestureEnabled
|
@Default(.horizontalPlayerGestureEnabled) private var horizontalPlayerGestureEnabled
|
||||||
@Default(.fullscreenPlayerGestureEnabled) private var fullscreenPlayerGestureEnabled
|
|
||||||
@Default(.seekGestureSpeed) private var seekGestureSpeed
|
@Default(.seekGestureSpeed) private var seekGestureSpeed
|
||||||
@Default(.seekGestureSensitivity) private var seekGestureSensitivity
|
@Default(.seekGestureSensitivity) private var seekGestureSensitivity
|
||||||
@Default(.buttonBackwardSeekDuration) private var buttonBackwardSeekDuration
|
@Default(.buttonBackwardSeekDuration) private var buttonBackwardSeekDuration
|
||||||
@@ -65,10 +64,9 @@ struct PlayerControlsSettings: View {
|
|||||||
|
|
||||||
@ViewBuilder var sections: some View {
|
@ViewBuilder var sections: some View {
|
||||||
#if !os(tvOS)
|
#if !os(tvOS)
|
||||||
Section(header: SettingsHeader(text: "Player Controls".localized()), footer: controlsLayoutFooter) {
|
Section(header: SettingsHeader(text: "Controls".localized()), footer: controlsLayoutFooter) {
|
||||||
avPlayerUsesSystemControlsToggle
|
#if !os(tvOS)
|
||||||
#if os(iOS)
|
avPlayerUsesSystemControlsToggle
|
||||||
fullscreenPlayerGestureEnabledToggle
|
|
||||||
#endif
|
#endif
|
||||||
horizontalPlayerGestureEnabledToggle
|
horizontalPlayerGestureEnabledToggle
|
||||||
SettingsHeader(text: "Seek gesture sensitivity".localized(), secondary: true)
|
SettingsHeader(text: "Seek gesture sensitivity".localized(), secondary: true)
|
||||||
@@ -114,7 +112,7 @@ struct PlayerControlsSettings: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var controlsButtonsSection: some View {
|
var controlsButtonsSection: some View {
|
||||||
Section(header: SettingsHeader(text: "Player Control Buttons".localized())) {
|
Section(header: SettingsHeader(text: "Controls Buttons".localized())) {
|
||||||
controlButtonToggles
|
controlButtonToggles
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -159,12 +157,8 @@ struct PlayerControlsSettings: View {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
private var fullscreenPlayerGestureEnabledToggle: some View {
|
|
||||||
Toggle("Swipe up toggles fullscreen", isOn: $fullscreenPlayerGestureEnabled)
|
|
||||||
}
|
|
||||||
|
|
||||||
private var horizontalPlayerGestureEnabledToggle: some View {
|
private var horizontalPlayerGestureEnabledToggle: some View {
|
||||||
Toggle("Seek with horizontal swipe", isOn: $horizontalPlayerGestureEnabled)
|
Toggle("Seek with horizontal swipe on video", isOn: $horizontalPlayerGestureEnabled)
|
||||||
}
|
}
|
||||||
|
|
||||||
private var avPlayerUsesSystemControlsToggle: some View {
|
private var avPlayerUsesSystemControlsToggle: some View {
|
||||||
|
|||||||
@@ -4913,7 +4913,7 @@
|
|||||||
repositoryURL = "https://github.com/sindresorhus/Defaults";
|
repositoryURL = "https://github.com/sindresorhus/Defaults";
|
||||||
requirement = {
|
requirement = {
|
||||||
kind = upToNextMajorVersion;
|
kind = upToNextMajorVersion;
|
||||||
minimumVersion = 7.0.0;
|
minimumVersion = 7.3.1;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
372AA40E286D067B0000B1DC /* XCRemoteSwiftPackageReference "Repeat" */ = {
|
372AA40E286D067B0000B1DC /* XCRemoteSwiftPackageReference "Repeat" */ = {
|
||||||
@@ -4928,8 +4928,8 @@
|
|||||||
isa = XCRemoteSwiftPackageReference;
|
isa = XCRemoteSwiftPackageReference;
|
||||||
repositoryURL = "https://github.com/hyperoslo/Cache.git";
|
repositoryURL = "https://github.com/hyperoslo/Cache.git";
|
||||||
requirement = {
|
requirement = {
|
||||||
branch = master;
|
kind = upToNextMajorVersion;
|
||||||
kind = branch;
|
minimumVersion = 7.4.0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
375B8AAF28B57F4200397B31 /* XCRemoteSwiftPackageReference "KeychainAccess" */ = {
|
375B8AAF28B57F4200397B31 /* XCRemoteSwiftPackageReference "KeychainAccess" */ = {
|
||||||
@@ -4944,16 +4944,16 @@
|
|||||||
isa = XCRemoteSwiftPackageReference;
|
isa = XCRemoteSwiftPackageReference;
|
||||||
repositoryURL = "https://github.com/pinterest/PINCache";
|
repositoryURL = "https://github.com/pinterest/PINCache";
|
||||||
requirement = {
|
requirement = {
|
||||||
branch = master;
|
kind = upToNextMajorVersion;
|
||||||
kind = branch;
|
minimumVersion = 3.0.4;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
379325D329A265A300181CF1 /* XCRemoteSwiftPackageReference "swift-log" */ = {
|
379325D329A265A300181CF1 /* XCRemoteSwiftPackageReference "swift-log" */ = {
|
||||||
isa = XCRemoteSwiftPackageReference;
|
isa = XCRemoteSwiftPackageReference;
|
||||||
repositoryURL = "https://github.com/yattee/swift-log.git";
|
repositoryURL = "https://github.com/apple/swift-log.git";
|
||||||
requirement = {
|
requirement = {
|
||||||
branch = main;
|
kind = upToNextMajorVersion;
|
||||||
kind = branch;
|
minimumVersion = 1.6.1;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
3797104728D3D10600D5F53C /* XCRemoteSwiftPackageReference "SDWebImageSwiftUI" */ = {
|
3797104728D3D10600D5F53C /* XCRemoteSwiftPackageReference "SDWebImageSwiftUI" */ = {
|
||||||
@@ -4961,7 +4961,7 @@
|
|||||||
repositoryURL = "https://github.com/SDWebImage/SDWebImageSwiftUI.git";
|
repositoryURL = "https://github.com/SDWebImage/SDWebImageSwiftUI.git";
|
||||||
requirement = {
|
requirement = {
|
||||||
kind = upToNextMajorVersion;
|
kind = upToNextMajorVersion;
|
||||||
minimumVersion = 2.1.0;
|
minimumVersion = 2.2.7;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
3797757B268922D100DD52A8 /* XCRemoteSwiftPackageReference "siesta" */ = {
|
3797757B268922D100DD52A8 /* XCRemoteSwiftPackageReference "siesta" */ = {
|
||||||
@@ -4969,7 +4969,7 @@
|
|||||||
repositoryURL = "https://github.com/bustoutsolutions/siesta";
|
repositoryURL = "https://github.com/bustoutsolutions/siesta";
|
||||||
requirement = {
|
requirement = {
|
||||||
kind = upToNextMajorVersion;
|
kind = upToNextMajorVersion;
|
||||||
minimumVersion = 1.5.0;
|
minimumVersion = 1.5.2;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
3799AC0728B03CEC001376F9 /* XCRemoteSwiftPackageReference "ActiveLabel.swift" */ = {
|
3799AC0728B03CEC001376F9 /* XCRemoteSwiftPackageReference "ActiveLabel.swift" */ = {
|
||||||
@@ -4985,7 +4985,7 @@
|
|||||||
repositoryURL = "https://github.com/Alamofire/Alamofire.git";
|
repositoryURL = "https://github.com/Alamofire/Alamofire.git";
|
||||||
requirement = {
|
requirement = {
|
||||||
kind = upToNextMajorVersion;
|
kind = upToNextMajorVersion;
|
||||||
minimumVersion = 5.0.0;
|
minimumVersion = 5.9.1;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
37BD07C52698B27B003EBB87 /* XCRemoteSwiftPackageReference "SwiftUI-Introspect" */ = {
|
37BD07C52698B27B003EBB87 /* XCRemoteSwiftPackageReference "SwiftUI-Introspect" */ = {
|
||||||
@@ -4993,7 +4993,7 @@
|
|||||||
repositoryURL = "https://github.com/siteline/SwiftUI-Introspect.git";
|
repositoryURL = "https://github.com/siteline/SwiftUI-Introspect.git";
|
||||||
requirement = {
|
requirement = {
|
||||||
kind = upToNextMajorVersion;
|
kind = upToNextMajorVersion;
|
||||||
minimumVersion = 0.1.3;
|
minimumVersion = 1.3.0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
37CF8B8228535E4F00B71E37 /* XCRemoteSwiftPackageReference "SDWebImage" */ = {
|
37CF8B8228535E4F00B71E37 /* XCRemoteSwiftPackageReference "SDWebImage" */ = {
|
||||||
@@ -5001,7 +5001,7 @@
|
|||||||
repositoryURL = "https://github.com/SDWebImage/SDWebImage";
|
repositoryURL = "https://github.com/SDWebImage/SDWebImage";
|
||||||
requirement = {
|
requirement = {
|
||||||
kind = upToNextMajorVersion;
|
kind = upToNextMajorVersion;
|
||||||
minimumVersion = 5.19.1;
|
minimumVersion = 5.19.7;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
37D4B19B2671817900C925CA /* XCRemoteSwiftPackageReference "SwiftyJSON" */ = {
|
37D4B19B2671817900C925CA /* XCRemoteSwiftPackageReference "SwiftyJSON" */ = {
|
||||||
@@ -5009,7 +5009,7 @@
|
|||||||
repositoryURL = "https://github.com/SwiftyJSON/SwiftyJSON.git";
|
repositoryURL = "https://github.com/SwiftyJSON/SwiftyJSON.git";
|
||||||
requirement = {
|
requirement = {
|
||||||
kind = upToNextMajorVersion;
|
kind = upToNextMajorVersion;
|
||||||
minimumVersion = 5.0.0;
|
minimumVersion = 5.0.2;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
37EE6DC328A305AD00BFD632 /* XCRemoteSwiftPackageReference "Reachability" */ = {
|
37EE6DC328A305AD00BFD632 /* XCRemoteSwiftPackageReference "Reachability" */ = {
|
||||||
@@ -5017,7 +5017,7 @@
|
|||||||
repositoryURL = "https://github.com/ashleymills/Reachability.swift";
|
repositoryURL = "https://github.com/ashleymills/Reachability.swift";
|
||||||
requirement = {
|
requirement = {
|
||||||
kind = upToNextMajorVersion;
|
kind = upToNextMajorVersion;
|
||||||
minimumVersion = 5.1.0;
|
minimumVersion = 5.2.3;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
37FB2847272207F000A57617 /* XCRemoteSwiftPackageReference "SDWebImageWebPCoder" */ = {
|
37FB2847272207F000A57617 /* XCRemoteSwiftPackageReference "SDWebImageWebPCoder" */ = {
|
||||||
@@ -5025,7 +5025,7 @@
|
|||||||
repositoryURL = "https://github.com/SDWebImage/SDWebImageWebPCoder.git";
|
repositoryURL = "https://github.com/SDWebImage/SDWebImageWebPCoder.git";
|
||||||
requirement = {
|
requirement = {
|
||||||
kind = upToNextMajorVersion;
|
kind = upToNextMajorVersion;
|
||||||
minimumVersion = 0.8.4;
|
minimumVersion = 0.14.6;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
37FB285227220D8400A57617 /* XCRemoteSwiftPackageReference "SDWebImagePINPlugin" */ = {
|
37FB285227220D8400A57617 /* XCRemoteSwiftPackageReference "SDWebImagePINPlugin" */ = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"originHash" : "515d8e68c4a31658288fb3f94789ee539399b042082c08c39f4c03c27fd8860c",
|
"originHash" : "173de1b718eb898698eaba0221b46be9781899a652725709c8400d3ddfb01980",
|
||||||
"pins" : [
|
"pins" : [
|
||||||
{
|
{
|
||||||
"identity" : "activelabel.swift",
|
"identity" : "activelabel.swift",
|
||||||
@@ -24,8 +24,8 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/hyperoslo/Cache.git",
|
"location" : "https://github.com/hyperoslo/Cache.git",
|
||||||
"state" : {
|
"state" : {
|
||||||
"branch" : "master",
|
"revision" : "24e47109e31b2031cb26e25cc1b81b607496066c",
|
||||||
"revision" : "81a0277cbc6b63f4e0cd6f42c4abefa1011bbfa9"
|
"version" : "7.4.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -69,8 +69,8 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/pinterest/PINCache",
|
"location" : "https://github.com/pinterest/PINCache",
|
||||||
"state" : {
|
"state" : {
|
||||||
"branch" : "master",
|
"revision" : "2fb85948463292c2e824148cf17dc62a4c217a94",
|
||||||
"revision" : "2fb85948463292c2e824148cf17dc62a4c217a94"
|
"version" : "3.0.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -148,10 +148,10 @@
|
|||||||
{
|
{
|
||||||
"identity" : "swift-log",
|
"identity" : "swift-log",
|
||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/yattee/swift-log.git",
|
"location" : "https://github.com/apple/swift-log.git",
|
||||||
"state" : {
|
"state" : {
|
||||||
"branch" : "main",
|
"revision" : "9cb486020ebf03bfa5b5df985387a14a98744537",
|
||||||
"revision" : "3f3dc1390a2f116894887c352792dc8d5fa9e875"
|
"version" : "1.6.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -168,8 +168,8 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/siteline/SwiftUI-Introspect.git",
|
"location" : "https://github.com/siteline/SwiftUI-Introspect.git",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "121c146fe591b1320238d054ae35c81ffa45f45a",
|
"revision" : "807f73ce09a9b9723f12385e592b4e0aaebd3336",
|
||||||
"version" : "0.12.0"
|
"version" : "1.3.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user