Dunfey · Hotel WWDC as data, est. 1983
Front desk everything
Years
Topics

2021 EssentialsDeveloper Tools

WWDC21 · 18 min · Essentials / Developer Tools

Elevate your DocC documentation in Xcode

Great documentation can help people effectively and easily adopt your Swift framework. Discover how you can create rich, conceptual articles to accompany your API. You’ll learn best practices for writing articles, including how to structure your documentation, and find out how to create automatically managed links that connect your docs together.

Watch at developer.apple.com ↗

Transcript all transcripts

Code shown on screen · 2 snippets

Top Level SlothCreator Article markdown · at 4:55 ↗
# ``SlothCreator``

Catalog sloths you find in nature and create new adorable virtual sloths.

## Overview

SlothCreator provides models and utilities for creating, tracking, and caring for sloths. The framework provides structures to model an individual ``Sloth``, and identify them by key characteristics, including their ``Sloth/name`` and special supernatural ``Sloth/power-swift.property``. You can create your own custom sloths using a ``SlothGenerator``, and name them using a ``NameGenerator``.

Sloths need careful feeding and maintenance to ensure their health and happiness. You maintain their ``Sloth/energyLevel`` by providing the correct ``Sloth/Food`` and a suitable ``Habitat``. You can exercise your sloth by providing a fun or restful ``Activity``. 

You can visualize and observe your sloths by adding a ``SlothView`` to a SwiftUI view structure.

![A sloth hanging off a tree.](sloth.png)
Top Level SlothCreator Article markdown · at 9:14 ↗
# ``SlothCreator``

Catalog sloths you find in nature and create new adorable virtual sloths.

## Overview

SlothCreator provides models and utilities for creating, tracking, and caring for sloths. The framework provides structures to model an individual ``Sloth``, and identify them by key characteristics, including their ``Sloth/name`` and special supernatural ``Sloth/power-swift.property``. You can create your own custom sloths using a ``SlothGenerator``, and name them using a ``NameGenerator``.

Sloths need careful feeding and maintenance to ensure their health and happiness. You maintain their ``Sloth/energyLevel`` by providing the correct ``Sloth/Food`` and a suitable ``Habitat``. You can exercise your sloth by providing a fun or restful ``Activity``. 

You can visualize and observe your sloths by adding a ``SlothView`` to a SwiftUI view structure.

![A sloth hanging off a tree.](sloth.png)

Resources