Showing posts with label SwiftUI. Show all posts
Showing posts with label SwiftUI. Show all posts

Wednesday, March 9, 2022

[SwiftUI][resolved] Cannot find 'landmarks' in scope



there should be NOT mistake from apple official tutorial,  go clean the derived data then the code should be works, here is the method to clean xCode derived data :

https://stackoverflow.com/questions/46468220/how-can-i-delete-derived-data-in-xcode-9/46468334#46468334

Tuesday, March 8, 2022

[SwiftUI][solved] command-click not show menu with "Show SwiftUI Inspector"

i am a newbie to swiftUI and using Xcode version 13.2.1 and follow the official tutorial, use command-click the text "Hello world" but won't show the menu with option item "Show SwiftUI Inspector"in preview and it would auto select and highlight the code segment in code view.

tutorial instruction:

Finally i found alt-click work, but not use the command-click as the instruction said.


reference: 

https://developer.apple.com/tutorials/swiftui/creating-and-combining-views

https://developer.apple.com/documentation/xcode/creating-your-app-s-interface-with-swiftui