Wednesday 16 June 2021
Home      All news      Contact us      RSS     
apple.com - 6 days ago

Challenge: Create amazing documentation

Explore Xcode s new documentation features and learn how to add documentation to your own framework or package — or to your favorite open source project. For this challenge, we’re asking you to create documentation for your own framework or package (or your favorite open source project). Use Xcode 13 to build documentation from the header comments in your Swift framework, and add a Documentation Catalog to organize your content.Begin the challengeOpen up your project in Xcode, and start adding documentation comments in your source by using Swift DocC markdown syntax. DocC uses the comments you write in your source code as the content for the documentation pages it generates. At a minimum, add basic documentation comments to the framework’s public symbols for DocC to use as their single-sentence abstracts or summaries. Here’s an example:/// A model representing a sloth. /// /// Sloths are mammals noted for their slowness of movement. They spend most of their /// lives hanging upside down in trees. public struct Sloth { /// The species of the sloth. public var species: SpeciesOnce you’ve finished your documentation, select Product gt; Build Documentation to generate your source docs for Quick Help and the Developer Documentation window.Need help writing or constructing your documentation? Check out the Developer Tools Digital Lounges. On Thursday from 1 p.m. - 5 p.m. PDT, drop by the Developer Tools Study Hall in the #devtools-study-hall channel to share your progress, ask questions about your project, and collaborate with others. You can also share your progress on the Developer Forums using the tag “WWDC21-Challenges,” or on social media using the hashtag #WWDC21Challenges.ResourcesDocumenting a Swift Framework or PackageRead the WWDC21 Challenges Terms and Conditions


Latest News
Hashtags:   

Challenge

 | 

Create

 | 

amazing

 | 

documentation

 | 

Sources