seekla.blogg.se

Objective c to swift migration
Objective c to swift migration










I’m not a fan of the actual pages and stylesheets it generates, but the XML output contains all the relevant documentation, and this output can be used to feed a separate documentation frontend like MkDocs. The wonderful Doxygen is quite capable of parsing structured documentation out of comments. It’s easy enough to programmatically generate API documentation for Objective-C. If a function takes two parameters, I want to show the function’s header and a good thorough explanation of what it expects for parameters, what it returns, and any extra notes about how it behaves.

objective c to swift migration

The standard I’ve set for my documentation is that I want to show both the code that declares the Class or Function (or some close simplification of it) as well as structured commentary written in plain English.

objective c to swift migration

Since the core part of my project is a C library, being able to wrap it cleanly makes life a little easier for me. Although it’s mostly advisable to stick to writing iOS libraries in Swift these days, I chose Objective-C because it felt nicer when wrapping C libraries.

objective c to swift migration

I’ve been working on building documentation for Quiet Modem Project and I recently came up against a snag in documenting my iOS library that contains Objective-C.












Objective c to swift migration