Updated the SlothCreator docc archive to the Resources folder.

This commit is contained in:
javier committed 2025-02-26 23:01:53 +01:00
1 parent 8b3e9e47fd
commit cc17bb0e13
4391 files changed
+4345 -5

No files matched your search

@@ -1 +1 @@
{"variants":[{"paths":["\/tutorials\/slothcreator\/creating-custom-sloths"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"project","identifier":{"url":"doc:\/\/SlothCreator\/tutorials\/SlothCreator\/Creating-Custom-Sloths","interfaceLanguage":"swift"},"sections":[{"estimatedTimeInMinutes":30,"kind":"hero","content":[{"inlineContent":[{"text":"This tutorial guides you through building ","type":"text"},{"type":"emphasis","inlineContent":[{"type":"text","text":"Slothy"}]},{"text":" — an app for creating and caring for custom sloths. You’ll start by building the sloth creation view.","type":"text"}],"type":"paragraph"}],"backgroundImage":"creating-intro.png","chapter":"SlothCreator Essentials","title":"Creating Custom Sloths","image":"creating-intro.png"},{"tasks":[{"contentSection":[{"kind":"contentAndMedia","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Create and configure an Xcode project that uses SlothCreator."}]}],"mediaPosition":"trailing","media":"01-creating-section1.png"}],"anchor":"Create-a-new-project-and-add-SlothCreator","stepsSection":[{"content":[{"type":"paragraph","inlineContent":[{"text":"Create a new project using the iOS App template.","type":"text"}]}],"media":"placeholder-image.png","code":null,"type":"step","runtimePreview":null,"caption":[]},{"media":"placeholder-image.png","code":null,"caption":[],"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Enter “Slothy” as the Product Name."}]}],"runtimePreview":null,"type":"step"},{"runtimePreview":null,"caption":[],"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Select “SwiftUI” from the Interface pop-up menu and “SwiftUI App” from the Life Cycle pop-up menu, then click Next. Choose a location to save the Slothy project on your Mac."}]}],"code":null,"media":"placeholder-image.png","type":"step"},{"runtimePreview":null,"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Add "},{"code":"SlothCreator","type":"codeVoice"},{"type":"text","text":" as a dependency to the project."}]}],"caption":[],"type":"step","code":null,"media":"placeholder-image.png"}],"title":"Create a new project and add SlothCreator"},{"contentSection":[{"kind":"contentAndMedia","media":"01-creating-section2.png","mediaPosition":"trailing","content":[{"inlineContent":[{"text":"Add the ability for users to customize sloths and select their powers.","type":"text"}],"type":"paragraph"}]}],"stepsSection":[{"caption":[],"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Create a new SwiftUI View file named "},{"code":"CustomizedSlothView.swift","type":"codeVoice"},{"type":"text","text":"."}]}],"code":"01-creating-code-02-01.swift","runtimePreview":"preview-01-creating-code-02-01.png","type":"step","media":null},{"type":"step","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Import the "},{"type":"codeVoice","code":"SlothCreator"},{"type":"text","text":" package."}]}],"media":null,"runtimePreview":"preview-01-creating-code-02-01.png","code":"01-creating-code-02-02.swift","caption":[]},{"caption":[],"code":"01-creating-code-02-03.swift","media":null,"type":"step","content":[{"inlineContent":[{"type":"text","text":"Create a "},{"code":"SlothCreator\/Sloth","type":"codeVoice"},{"type":"text","text":" state variable called "},{"type":"codeVoice","code":"sloth"},{"text":".","type":"text"}],"type":"paragraph"}],"runtimePreview":"preview-01-creating-code-02-01.png"},{"caption":[{"type":"paragraph","inlineContent":[{"text":"This adds space around and between any views inside.","type":"text"}]}],"runtimePreview":"preview-01-creating-code-02-04.png","media":null,"type":"step","code":"01-creating-code-02-04.swift","content":[{"inlineContent":[{"text":"Delete the template ","type":"text"},{"code":"Text","type":"codeVoice"},{"text":" view, then add a new ","type":"text"},{"type":"codeVoice","code":"VStack"},{"text":" with trailing padding.","type":"text"}],"type":"paragraph"}]},{"content":[{"inlineContent":[{"type":"text","text":"Add a "},{"code":"SlothView","type":"codeVoice"},{"text":". Specify the ","type":"text"},{"code":"sloth","type":"codeVoice"},{"type":"text","text":" state variable for the view’s "},{"type":"codeVoice","code":"sloth"},{"text":" binding.","type":"text"}],"type":"paragraph"}],"runtimePreview":"preview-01-creating-code-02-04.png","media":null,"code":"01-creating-code-02-05.swift","type":"step","caption":[]},{"media":null,"content":[{"type":"paragraph","inlineContent":[{"text":"Add a ","type":"text"},{"code":"PowerPicker","type":"codeVoice"},{"text":". Specify the ","type":"text"},{"type":"codeVoice","code":"sloth"},{"type":"text","text":"‘s "},{"type":"codeVoice","code":"power"},{"type":"text","text":" for the picker view’s "},{"type":"codeVoice","code":"power"},{"text":" binding.","type":"text"}]}],"caption":[],"runtimePreview":"preview-01-creating-code-02-04.png","code":"01-creating-code-02-06.swift","type":"step"}Line truncated
{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/tutorials\/slothcreator\/creating-custom-sloths"]}],"sections":[{"content":[{"type":"paragraph","inlineContent":[{"text":"This tutorial guides you through building ","type":"text"},{"type":"emphasis","inlineContent":[{"type":"text","text":"Slothy"}]},{"text":" — an app for creating and caring for custom sloths. You’ll start by building the sloth creation view.","type":"text"}]}],"chapter":"SlothCreator Essentials","backgroundImage":"creating-intro.png","image":"creating-intro.png","title":"Creating Custom Sloths","estimatedTimeInMinutes":30,"kind":"hero"},{"tasks":[{"title":"Create a new project and add SlothCreator","anchor":"Create-a-new-project-and-add-SlothCreator","stepsSection":[{"content":[{"type":"paragraph","inlineContent":[{"text":"Create a new project using the iOS App template.","type":"text"}]}],"code":null,"media":"placeholder-image.png","type":"step","caption":[],"runtimePreview":null},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Enter “Slothy” as the Product Name."}]}],"type":"step","runtimePreview":null,"code":null,"caption":[],"media":"placeholder-image.png"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Select “SwiftUI” from the Interface pop-up menu and “SwiftUI App” from the Life Cycle pop-up menu, then click Next. Choose a location to save the Slothy project on your Mac."}]}],"media":"placeholder-image.png","runtimePreview":null,"caption":[],"code":null,"type":"step"},{"code":null,"caption":[],"runtimePreview":null,"type":"step","media":"placeholder-image.png","content":[{"type":"paragraph","inlineContent":[{"text":"Add ","type":"text"},{"type":"codeVoice","code":"SlothCreator"},{"text":" as a dependency to the project.","type":"text"}]}]}],"contentSection":[{"media":"01-creating-section1.png","mediaPosition":"trailing","kind":"contentAndMedia","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Create and configure an Xcode project that uses SlothCreator."}]}]}]},{"contentSection":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Add the ability for users to customize sloths and select their powers."}]}],"kind":"contentAndMedia","mediaPosition":"trailing","media":"01-creating-section2.png"}],"anchor":"Add-a-customization-view","stepsSection":[{"content":[{"inlineContent":[{"text":"Create a new SwiftUI View file named ","type":"text"},{"type":"codeVoice","code":"CustomizedSlothView.swift"},{"text":".","type":"text"}],"type":"paragraph"}],"caption":[],"type":"step","media":null,"runtimePreview":"preview-01-creating-code-02-01.png","code":"01-creating-code-02-01.swift"},{"runtimePreview":"preview-01-creating-code-02-01.png","caption":[],"code":"01-creating-code-02-02.swift","type":"step","media":null,"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Import the "},{"type":"codeVoice","code":"SlothCreator"},{"text":" package.","type":"text"}]}]},{"runtimePreview":"preview-01-creating-code-02-01.png","caption":[],"type":"step","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Create a "},{"isActive":true,"type":"reference","identifier":"doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-2.SlothCreator\/documentation\/SlothCreator\/Sloth"},{"type":"text","text":" state variable called "},{"code":"sloth","type":"codeVoice"},{"text":".","type":"text"}]}],"media":null,"code":"01-creating-code-02-03.swift"},{"type":"step","caption":[{"type":"paragraph","inlineContent":[{"type":"text","text":"This adds space around and between any views inside."}]}],"runtimePreview":"preview-01-creating-code-02-04.png","media":null,"content":[{"type":"paragraph","inlineContent":[{"text":"Delete the template ","type":"text"},{"code":"Text","type":"codeVoice"},{"text":" view, then add a new ","type":"text"},{"code":"VStack","type":"codeVoice"},{"type":"text","text":" with trailing padding."}]}],"code":"01-creating-code-02-04.swift"},{"runtimePreview":"preview-01-creating-code-02-04.png","code":"01-creating-code-02-05.swift","content":[{"inlineContent":[{"type":"text","text":"Add a "},{"type":"codeVoice","code":"SlothView"},{"text":". Specify the ","type":"text"},{"type":"codeVoice","code":"sloth"},{"type":"text","text":" state variable for the view’s "},{"type":"codeVoice","code":"sloth"},{"text":" binding.","type":"text"}],"type":"paragraph"}],"type":"step","caption":[],"media":null},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Add a "},{"code":"PowerPicker","type":"codeVoice"},{"text":". Specify the ","type":"text"},{"code":"sloth","type":"codeVoice"},{"type":"text","text":"‘s "},{"type":"codeVoice","code":"power"},{"type":"text","text":" for the picker view’s "},{"type":"codeVoice","code":"power"},{"text":" binding.","type":"text"}]}],"runtimePreview":"preview-01-creating-code-02-04.png","caption":[],"media":null,"code":"01-creating-code-02-06.swift","type":"stLine truncated