Swift Documentation Markup Swift Documentation Markup
Swift. Slowly.

Swift Documentation Markup

An Illustrated Tour

    • 5.0 • 3 Ratings
    • £5.49
    • £5.49

Publisher Description

No matter how clear and well written, naked code is never quite self-documenting. There is always a role for comments, whether the in-line narration of key design points or the formal annotation of public declarations. Nearly every modern language, including Swift, offers some kind of structured comment system that documents APIs for developers that consume them.


The Swift structured documentation uses a mix of custom keywords and Markdown syntax to create a simple, easy-to-apply annotation tool. By leveraging this industry-standard tech, Apple opens up its structured documentation system to an entirely new generation with an absolute minimum of training needed to get up to speed.


This short book introduces Swift's documentation markup system using simple, illustrated examples, with plenty of discussion of best practices. You'll discover the components that make up Swift's structured comment system and learn how to best integrate them into your own code. For the most part, I've built this material out of examples from Swift's standard library, from release notes, and by reverse-engineering extensible style-sheet specifications. While I've tried to include a thorough list of legal tokens, I've focused on supplementing core details with a thoughtful discussion of best practices that will stand the test of time as Apple updates this system.


I hope you find this book to be a useful and worthy addition to your development library. I've had a great time writing it. Hopefully you'll have a great time reading it. Thank you for purchasing a copy!


-- Erica Sadun


What people are saying:


"I wish every line of #swiftlang I read in the future will be written by someone who reads the awesome [book] by @ericasadun" -- Mark Engle, @_markengle


"Just bought @ericasadun's #swiftlang Docs Markup Book. It's great for Swift devs" -- @Kametrixom


"Erica Sadun's new book, Swift Documentation Markup, an Illustrated Tour, not only explains the importance of documentation, it also comprehensively details the breadth of Xcode’s markup support...Until I read the book, I had no real idea of just how powerful this support was. In a series of clearly written sections, Erica explains how to implement features such as text formatting, category keywords and even embedded images with real world demonstrations, examples of how Apple use them and recommendations on whether they should actually be used.


The ability to add rich content to documentation means that creating code comments now feels more of a creative process and there’s a certain satisfaction to option-clicking your carefully crafted function to see a beautifully formatted comment appear. This in itself is a incentive to start documenting properly...So, thanks to Erica, expect to see a massive improvement in my own code documentation from now on." -- Simon Gladman, @FlexMonkey


"instapurchase!"  -- James O'Leary, @jpohh


"Cool book on Xcode quick help comments by @ericasadun...Oh, and did I mention the book's cover is gorgeous?" -- @blessing_Lopes


"Every dev should have this!!!" -- Vic Hudson, @vichudson1


"Thanks for this!" -- Nick Kohrn, @bnkohrn

  • GENRE
    Computing & Internet
    RELEASED
    2015
    15 October
    LANGUAGE
    EN
    English
    LENGTH
    96
    Pages
    PUBLISHER
    Erica Sadun
    SIZE
    5.4
    MB

    Customer Reviews

    adityamatharu ,

    Amazing book

    To the point and exactly the right amount of detail and presentation.

    Carlton Gibson ,

    Excellent

    Clear, concise and containing exactly the information needed to leverage Xcode's support for structured documentation.

    Well worth your money and your time. Very well done indeed.

    More Books Like This

    Swift For Dummies Swift For Dummies
    2015
    Coding All-in-One For Dummies Coding All-in-One For Dummies
    2022
    Objective-C Programming For Dummies Objective-C Programming For Dummies
    2012
    C# 2010 All-in-One For Dummies C# 2010 All-in-One For Dummies
    2010
    Objective-C for Absolute Beginners Objective-C for Absolute Beginners
    2010
    Cocoa and Objective-C: Up and Running Cocoa and Objective-C: Up and Running
    2010

    More Books by Erica Sadun

    Playground Secrets and Power Tips Playground Secrets and Power Tips
    2015
    Swift From Two to Three Swift From Two to Three
    2016
    The Core iOS 6 Developer's Cookbook, 4/e The Core iOS 6 Developer's Cookbook, 4/e
    2012
    The Swift Developer's Cookbook The Swift Developer's Cookbook
    2015
    Paradox Paradox
    2015
    iOS Drawing: Practical UIKit Solutions iOS Drawing: Practical UIKit Solutions
    2013

    Customers Also Bought

    Design Patterns in Swift 5 Design Patterns in Swift 5
    2019
    Swift Design Patterns Swift Design Patterns
    2018
    SwiftUI for Masterminds SwiftUI for Masterminds
    2020
    Swift 5.3 Cheat Sheet Swift 5.3 Cheat Sheet
    2021
    Develop in Swift AP CS Principles Develop in Swift AP CS Principles
    2020
    Develop in Swift Explorations Teacher Guide Develop in Swift Explorations Teacher Guide
    2021

    Other Books in This Series

    Playground Secrets and Power Tips Playground Secrets and Power Tips
    2015
    Swift From Two to Three Swift From Two to Three
    2016