Postcondition
Add a Postcondition
callout to the Quick Help for a symbol using the Postcondition delimiter. Multiple Postcondition
callouts appear in the description section in the same order as they do in the markup.
Use the callout to document conditions which have guaranteed values upon completion of the execution of the symbol.
Works with:
Playgrounds
✓ Symbol documentation
Syntax
* | + | - Postcondition: description
optional continuation of description
The description displayed in Quick Help postcondition for the callout is created as described in Parameters Section.
Example
/**
An example of using the postcondition field
- Postcondition:
After completing this method the billing address for
the person will be set to `updatedAddress` if it is valid.
Otherwise the billing address will not be changed.
*/
Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2017-06-05