Я хочу удалить названия улиц и т. д. из LookAround в моем приложении SwiftUI. Кажется, я не могу найти никаких рабочих решений для этой проблемы. Я видел, как другие приложения справлялись с этой задачей, но я просто не могу найти решение. Пожалуйста, помогите мне
Вот что я хочу удалить
Я пробовал что-то подобное, но это не работает.func makeUIViewController(context: Context) -> MKLookAroundViewController {
let lookAroundViewController = MKLookAroundViewController()
lookAroundViewController.isNavigationEnabled = true // Enable navigation controls
lookAroundViewController.showsRoadLabels = false // Hide road labels (not working)
lookAroundViewController.pointOfInterestFilter = .excludingAll // Exclude points of interest
lookAroundViewController.badgePosition = .bottomTrailing // Set badge position
// Assign initial scene if available
if let initialScene = initialScene {
lookAroundViewController.scene = initialScene
}
return lookAroundViewController
}
Подробнее здесь: https://stackoverflow.com/questions/782 ... in-swiftui