You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Making documentation make sense for both obj-c and swift #3956
This documentation keeps mentioning YES as the positive value for this option, but YES is an objective-c'ism - for swift users, the value would be true. How do write documentation in a language-neutral way, or split suggestions like these by language?
realm/jazzy#136 is fixed. We still need to replace YES and NO with true and false, respectively. For Swift 3, we also need to remove the NS class prefix from Foundation classes like NSArray and NSString.
Another thing that may confuse some developers is that enumerations are respelled when bridged to Swift, for example MGLSymbolPlacementLine as MGLSymbolPlacement.line, but our documentation doesn’t mention the respelling.
Activity
1ec5 commentedon Feb 15, 2016
This is essentially upstream in realm/jazzy#353, but we probably could roll our own language support using custom templates and some shell scripting.
1ec5 commentedon Apr 21, 2016
The upstream issue is now realm/jazzy#136.
1ec5 commentedon Jun 20, 2016
realm/jazzy#136 is fixed. We still need to replace
YESandNOwithtrueandfalse, respectively. For Swift 3, we also need to remove theNSclass prefix from Foundation classes likeNSArrayandNSString.1ec5 commentedon Nov 20, 2016
Another thing that may confuse some developers is that enumerations are respelled when bridged to Swift, for example
MGLSymbolPlacementLineasMGLSymbolPlacement.line, but our documentation doesn’t mention the respelling.1ec5 commentedon Apr 11, 2017
This is still on our wishlist.
tmcw commentedon Apr 11, 2017
Please re-open under a different user, then - I don't want to be the owner of this issue.
1ec5 commentedon Apr 11, 2017
Looks like realm/jazzy#136 tracks this issue adequately. 👍
By the way, @tmcw, you can click Unsubscribe to stop receiving notifications about this issue or others like it in the future. Hope that helps!