Skip to content

Commit

Permalink
swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
vanities committed Jan 4, 2023
1 parent 17a471d commit f701e99
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions swiftchan/Models/VLCVideo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import MobileVLCKit

struct VLCVideo: Equatable, Identifiable {
let id: String
//weak var urlSessionDelegate: URLSessionDownloadDelegate?
// weak var urlSessionDelegate: URLSessionDownloadDelegate?
var url: URL
var mediaControlState: MediaControlState = .initialize
var mediaPlayerState: VLCMediaPlayerState = .buffering
Expand Down Expand Up @@ -53,7 +53,7 @@ struct VLCVideo: Equatable, Identifiable {
return cacheURL
}

//let urlSession = URLSession(configuration: .default, delegate: urlSessionDelegate, delegateQueue: nil)
// let urlSession = URLSession(configuration: .default, delegate: urlSessionDelegate, delegateQueue: nil)
if let existingOperation = Prefetcher.shared.videoPrefetcher.queue.operations.first(where: {
($0 as? DownloadOperation)?.downloadTaskURL == url
}), let operation = existingOperation as? DownloadOperation {
Expand Down
2 changes: 1 addition & 1 deletion swiftchan/Services/AnimatedImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct AnimatedImage: View, Identifiable {
loop: Bool = false,
loopIndex: Int = 0,
iterations: Int = Int.max,
finished: (() -> Void)? = nil
finished: (() -> Void)? = nil
) {
self.images = images
self.interval = interval
Expand Down
2 changes: 1 addition & 1 deletion swiftchan/Views/Media/VLC/VLCVideoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct VLCVideoView: UIViewRepresentable {
_ uiView: VLCMediaListPlayerUIView,
context: UIViewRepresentableContext<VLCVideoView>
) {
//debugPrint("state change \(vlcVideoViewModel.vlcVideo.mediaControlState)")
// debugPrint("state change \(vlcVideoViewModel.vlcVideo.mediaControlState)")
switch vlcVideoViewModel.video.mediaControlState {
case .initialize:
return
Expand Down
1 change: 0 additions & 1 deletion swiftchan/Views/Thread/PostView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ struct PostView: View {
.font(Font.system(size: 8))
}


}
.padding(.leading, -5)
}
Expand Down
2 changes: 1 addition & 1 deletion swiftchan/Views/Thread/ThreadView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ struct ThreadView: View {
ToolbarItem(id: "toolbar-item-1", placement: ToolbarItemPlacement.navigationBarTrailing) {
HStack {
// TODO: fix this from redrawing the whole posts in ThreadView,
//autoRefreshButton
// autoRefreshButton
Link(destination: viewModel.url) {
Image(systemName: "square.and.arrow.up")
}
Expand Down

0 comments on commit f701e99

Please sign in to comment.