Skip to content

Commit

Permalink
Fix warnings: Main actor-isolated instance method
Browse files Browse the repository at this point in the history
Part of a fix for #764
  • Loading branch information
aaronbrethorst committed Nov 30, 2024
1 parent 6fc0a02 commit 5f1d52d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions OBAKit/Mapping/MapViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -540,13 +540,12 @@ class MapViewController: UIViewController,
}
}

@MainActor
public func mapRegionManager(_ manager: MapRegionManager, showSearchResult response: SearchResponse) {
Task { @MainActor [weak self] in
guard let self, let result = response.results.first else { return }

statusOverlay.isHidden = true

switch result {
case let result as MKMapItem:
let mapItemController = MapItemViewController(application: application, mapItem: result, delegate: self)
Expand Down

0 comments on commit 5f1d52d

Please sign in to comment.