Open tarasis opened 1 year ago
Is this SwiftUI for iOS or macOS?
For macOS.
I’ve tried with and without the SDK option being explicitly set to the location of the macOS SDK in Xcode.
Aside; why this came up is I realised I could edit / create Mac apps as a hybrid package / Xcode project. I prefer the editor in VSCode compared to Xcode, except that hover docs are inconsistent. (Code completion works fine in both files)
On 16 Nov 2022, at 23:58, Adam Fowler @.***> wrote:
Is this SwiftUI for iOS or macOS?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
This looks like it is not working for function called within result builders. This is most likely an issue with SourceKit-LSP. I've added the following issue https://github.com/apple/swift/issues/67216
Describe the bug
When editing a SwiftUI file, sometimes the callout docs work, and other times they don't. For instance in example code A the only things that have hover docs are
body
,View
, orPreviewContent
but others likeImage
,Text
,.padding()
don't.In code B,
Text
,.padding()
and.foregroundColor()
and.blue
do have hover docs.To Reproduce Steps to reproduce the behavior:
body
you will see partial docs in a calloutExpected behavior A callout should appear for all things in the SDK. Open Code B in a file, and hover over
Text
,.padding()
and so on. All work.Environment
Additional context
Example code A
Example code B: