Skip to content

Commit

Permalink
Fix Xcode 16 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
milanvarady committed Sep 27, 2024
1 parent c03b2ae commit f917e14
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extension DeltaEFormula {
}
}

extension DeltaEFormula: CustomStringConvertible {
extension DeltaEFormula: @retroactive CustomStringConvertible {
public var description: String {
switch self {
case .euclidean:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ extension ExtractionModel: DropDelegate {
DropProposal(operation: .forbidden)
}
}

@MainActor

func performDrop(info: DropInfo) -> Bool {
let providers = info.itemProviders(
for: [.fileURL]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ extension RolesManager: DropDelegate {
if provider.canLoadObject(ofClass: URL.self) {
// Load the file URL from the provider
let _ = provider.loadObject(ofClass: URL.self) { url, error in
Task {
Task { @MainActor in
defer {
self.loadingInProgress = false
}
Expand Down
2 changes: 2 additions & 0 deletions Source/Marker Data/Marker Data/Views/Main/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ struct ContentView: View {
}
}

#if compiler(>=6)
#Preview {
@StateObject var settings = SettingsContainer()
@StateObject var databaseManager = DatabaseManager(settings: settings)
Expand All @@ -156,3 +157,4 @@ struct ContentView: View {
)
.environmentObject(settings)
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ struct WorkflowExtensionView: View {
.onDrop(of: [.fcpxml], isTargeted: nil) { providers -> Bool in
for provider in providers {
_ = provider.loadDataRepresentation(for: .fcpxml) { data, error in
self.handleDrop(data: data)
Task { @MainActor in
self.handleDrop(data: data)
}
}
}
return true
Expand Down

0 comments on commit f917e14

Please sign in to comment.