mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Fix style issues, remove unused code
This commit is contained in:
@@ -47,12 +47,12 @@ struct VideoPlayerView: View {
|
||||
#if !os(tvOS)
|
||||
@GestureState var dragGestureState = false
|
||||
@GestureState var dragGestureOffset = CGSize.zero
|
||||
@State var isHorizontalDrag = false
|
||||
@State var isVerticalDrag = false
|
||||
@State var viewDragOffset = Self.hiddenOffset
|
||||
@State var isHorizontalDrag = false // swiftlint:disable:this swiftui_state_private
|
||||
@State var isVerticalDrag = false // swiftlint:disable:this swiftui_state_private
|
||||
@State var viewDragOffset = Self.hiddenOffset // swiftlint:disable:this swiftui_state_private
|
||||
#endif
|
||||
|
||||
@ObservedObject var player = PlayerModel.shared
|
||||
@ObservedObject var player = PlayerModel.shared // swiftlint:disable:this swiftui_state_private
|
||||
|
||||
#if os(macOS)
|
||||
@ObservedObject private var navigation = NavigationModel.shared
|
||||
@@ -66,7 +66,7 @@ struct VideoPlayerView: View {
|
||||
@Default(.gestureForwardSeekDuration) private var gestureForwardSeekDuration
|
||||
@Default(.avPlayerUsesSystemControls) var avPlayerUsesSystemControls
|
||||
|
||||
@ObservedObject var controlsOverlayModel = ControlOverlaysModel.shared
|
||||
@ObservedObject var controlsOverlayModel = ControlOverlaysModel.shared // swiftlint:disable:this swiftui_state_private
|
||||
|
||||
var body: some View {
|
||||
ZStack(alignment: overlayAlignment) {
|
||||
|
@@ -92,7 +92,7 @@ struct ChannelsView: View {
|
||||
}
|
||||
#if os(iOS)
|
||||
.refreshable {
|
||||
await subscriptions.load(force: true)
|
||||
subscriptions.load(force: true)
|
||||
}
|
||||
#endif
|
||||
#if !os(tvOS)
|
||||
|
@@ -23,7 +23,7 @@ struct FeedView: View {
|
||||
}
|
||||
#if os(iOS)
|
||||
.refreshable {
|
||||
await feed.loadResources(force: true)
|
||||
feed.loadResources(force: true)
|
||||
}
|
||||
#endif
|
||||
#if !os(tvOS)
|
||||
|
@@ -294,7 +294,7 @@ struct VideoCell: View {
|
||||
HStack(spacing: 8) {
|
||||
if channelOnThumbnail,
|
||||
!inChannelView,
|
||||
let url = video.channel.thumbnailURLOrCached,
|
||||
video.channel.thumbnailURLOrCached != nil,
|
||||
video != .fixture
|
||||
{
|
||||
ChannelLinkView(channel: video.channel) {
|
||||
|
@@ -13,7 +13,7 @@ struct ControlsBar: View {
|
||||
@State private var shareURL: URL?
|
||||
@Binding var expansionState: ExpansionState
|
||||
|
||||
@State var gestureThrottle = Throttle(interval: 0.25)
|
||||
@State var gestureThrottle = Throttle(interval: 0.25) // swiftlint:disable:this swiftui_state_private
|
||||
|
||||
var presentingControls = true
|
||||
var backgroundEnabled = true
|
||||
|
Reference in New Issue
Block a user