Skip to content

Commit

Permalink
rename to MLNMapViewController
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick-Kladek committed Jul 15, 2024
1 parent aa3f51a commit 18e34ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public protocol MapViewHostViewController: UIViewController {
var mapView: MapType { get }
}

public final class MapViewController: UIViewController, MapViewHostViewController {
public final class MLNMapViewController: UIViewController, MapViewHostViewController {
public var mapView: MLNMapView {

Check warning on line 10 in Sources/MapLibreSwiftUI/MLNMapViewController.swift

View workflow job for this annotation

GitHub Actions / test (MapLibreSwiftUI-Package, platform=iOS Simulator,name=iPhone 15,OS=17.2)

main actor-isolated property 'mapView' cannot be used to satisfy nonisolated protocol requirement

Check warning on line 10 in Sources/MapLibreSwiftUI/MLNMapViewController.swift

View workflow job for this annotation

GitHub Actions / test (MapLibreSwiftUI-Package, platform=iOS Simulator,name=iPhone 15,OS=17.2)

main actor-isolated property 'mapView' cannot be used to satisfy nonisolated protocol requirement
view as! MLNMapView
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/MapLibreSwiftUI/MapView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public struct MapView<T: MapViewHostViewController>: UIViewControllerRepresentab
}
}

public extension MapView where T == MapViewController {
public extension MapView where T == MLNMapViewController {
@MainActor
init(
styleURL: URL,
Expand All @@ -140,7 +140,7 @@ public extension MapView where T == MapViewController {
@MapViewContentBuilder _ makeMapContent: () -> [StyleLayerDefinition] = { [] }
) {
makeViewController = {
MapViewController()
MLNMapViewController()
}
styleSource = .url(styleURL)
_camera = camera
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import XCTest

final class MapViewCoordinatorCameraTests: XCTestCase {
var maplibreMapView: MockMLNMapViewCameraUpdating!
var mapView: MapView<MapViewController>!
var coordinator: MapView<MapViewController>.Coordinator!
var mapView: MapView<MLNMapViewController>!
var coordinator: MapView<MLNMapViewController>.Coordinator!

@MainActor
override func setUp() async throws {
Expand Down

0 comments on commit 18e34ac

Please sign in to comment.