Skip to content

Commit

Permalink
last fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
leogdion committed Sep 10, 2024
1 parent 2b79ca3 commit fc3dcd3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Sources/RadiantDocs/AppKit/OpenAnyFilePanel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
public import SwiftUI

import UniformTypeIdentifiers
public import RadiantKit

public struct OpenAnyFilePanel {
let fileTypes: [FileType]

Expand Down
1 change: 0 additions & 1 deletion Sources/RadiantDocs/Primitives/CodablePackage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
//

public import Foundation
public import RadiantKit

public protocol CodablePackage: Sendable, Codable {
static var decoder: JSONDecoder { get }
Expand Down
1 change: 0 additions & 1 deletion Sources/RadiantDocs/Primitives/FileTypeSpecification.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@
//

import Foundation
public import RadiantKit

public protocol FileTypeSpecification: Sendable { static var fileType: FileType { get } }
3 changes: 2 additions & 1 deletion Sources/RadiantDocs/UTType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@

#if canImport(UniformTypeIdentifiers)
public import UniformTypeIdentifiers
public import RadiantKit

extension UTType {
public init(fileType: FileType) {
if fileType.isOwned {
self.init(exportedAs: fileType.utIdentifier)
}
else {
// swift-format-ignore: NeverForceUnwrap
self.init(fileType.utIdentifier)!
}
}
Expand Down
1 change: 1 addition & 0 deletions Sources/RadiantKit/BushelViewsCore/SingleWindowView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

public import SwiftUI

// periphery:ignore
public struct SingleWindowViewValue<ViewType: SingleWindowView>: DefaultableViewValue {
public static var `default`: Self { .init() }

Expand Down
6 changes: 4 additions & 2 deletions Sources/RadiantProgress/ObservableDownloader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,14 @@
internal let destinationFileURL: URL
}

// swift-format-ignore: NeverUseImplicitlyUnwrappedOptionals
@ObservationIgnored private var delegate: DownloadDelegate!

public internal(set) var totalBytesWritten: Int64 = 0
public internal(set) var totalBytesExpectedToWrite: Int64?

internal private(set) var session: URLSession!
// swift-format-ignore: NeverUseImplicitlyUnwrappedOptionals
@ObservationIgnored internal private(set) var session: URLSession!

internal let resumeDataSubject = PassthroughSubject<Data, Never>()
internal var task: URLSessionDownloadTask?
Expand Down Expand Up @@ -222,7 +224,7 @@
}
deinit {
MainActor.assumeIsolated {
self.cancellables.forEach { $0.cancel() }
for cancellable in self.cancellables { cancellable.cancel() }
self.cancellables.removeAll()
self.session = nil
self.task = nil
Expand Down

0 comments on commit fc3dcd3

Please sign in to comment.