1 line
16 KiB
JSON
1 line
16 KiB
JSON
|
{"abstract":[{"text":"A model representing a sloth.","type":"text"}],"seeAlsoSections":[{"title":"Essentials","anchor":"Essentials","identifiers":["doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/GettingStarted","doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/SlothySample"],"generated":true}],"sections":[],"metadata":{"roleHeading":"Structure","title":"Sloth","symbolKind":"struct","externalID":"s:12SlothCreator0A0V","navigatorTitle":[{"text":"Sloth","kind":"identifier"}],"modules":[{"name":"SlothCreator"}],"fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Sloth","kind":"identifier"}],"role":"symbol"},"topicSections":[{"identifiers":["doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/Sloth\/init(name:color:power:)","doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/SlothGenerator"],"anchor":"Creating-a-Sloth","title":"Creating a Sloth"},{"identifiers":["doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/Sloth\/eat(_:quantity:)","doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/Sloth\/sleep(in:for:)"],"anchor":"Engaging-in-Activities","title":"Engaging in Activities"},{"title":"Getting the Sloth’s Schedule","identifiers":["doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/Sloth\/schedule"],"anchor":"Getting-the-Sloths-Schedule"},{"anchor":"Getting-the-Sloths-Identity","identifiers":["doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/Sloth\/name"],"title":"Getting the Sloth’s Identity"},{"identifiers":["doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/Sloth\/color-swift.property","doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/Sloth\/Color-swift.enum"],"anchor":"Getting-Visual-Attributes","title":"Getting Visual Attributes"},{"title":"Getting Magical Abilities","identifiers":["doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/Sloth\/power-swift.property","doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/Sloth\/Power-swift.enum","doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/Sloth\/energyLevel"],"anchor":"Getting-Magical-Abilities"}],"kind":"symbol","schemaVersion":{"minor":3,"major":0,"patch":0},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/Sloth"},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["visionOS"],"tokens":[{"kind":"keyword","text":"struct"},{"text":" ","kind":"text"},{"kind":"identifier","text":"Sloth"}],"languages":["swift"]}]},{"content":[{"anchor":"overview","level":2,"text":"Overview","type":"heading"},{"inlineContent":[{"type":"text","text":"Sloths are mammals known for their slowness of movement. They spend most of their"},{"text":" ","type":"text"},{"text":"lives hanging upside down in trees.","type":"text"}],"type":"paragraph"},{"type":"paragraph","inlineContent":[{"text":"You can create a sloth using the ","type":"text"},{"type":"reference","identifier":"doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/Sloth\/init(name:color:power:)","isActive":true},{"text":" initializer, or","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"create a randomly generated sloth using a "},{"type":"reference","identifier":"doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/SlothGenerator","isActive":true},{"text":":","type":"text"}]},{"syntax":"swift","type":"codeListing","code":["let slothGenerator = MySlothGenerator(see
|