Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Swift APIView] Native types do not appear in the navigation pane when they have extensions #3088

Closed
tjprescott opened this issue Apr 6, 2022 · 0 comments · Fixed by #4789
Assignees
Labels
APIView Priority 2 APIView Client This issue points to a problem in the data-plane of the library. Swift

Comments

@tjprescott
Copy link
Member

When a package defines an extension for a Swift Native type, that type does not appear in APIView's navigation.

public extension Double {
    var km: Double { return self * 1_000.0 }
    var m: Double { return self }
    var cm: Double { return self / 100.0 }
    var mm: Double { return self / 1_000.0 }
    var ft: Double { return self / 3.28084 }
}

While this extension does appear in the APIView, it does not appear in the navigation panel. It should probably live alongside the package-defined types.

Swift
 |--> Double
SwiftAPIViewTests
 |--> SomeClass
@tjprescott tjprescott self-assigned this Apr 6, 2022
@tjprescott tjprescott added the Client This issue points to a problem in the data-plane of the library. label Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APIView Priority 2 APIView Client This issue points to a problem in the data-plane of the library. Swift
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

1 participant