Skip to content

Commit

Permalink
Add Traits tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
akaDuality committed Feb 11, 2024
1 parent 17c4b06 commit 6eba90f
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

@TutorialReference(tutorial: "doc:DescribeElements")
@TutorialReference(tutorial: "doc:AdaptCells")
@TutorialReference(tutorial: "doc:Traits")
}

@Chapter(name: "Reduce Number of Controls") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,11 @@

What about a little `quiz` to revise the topic? 🔎

@Image(source: chapter-placeholder.png, alt: "")
@Comment {
Тут надо раскрыть, что на описание еще могут влиять другие трейты и контейнеры, но об этом позже
}

@Image(source: TraitsOrder.png, alt: "")
}
}
@Assessments {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
@Tutorial(time: 20) {
@Intro(title: "Traits") {
<#text#>

@Image(source: <#file#>, alt: "<#accessible description#>")
}

@Section(title: "<#text#>") {
@ContentAndMedia {
<#text#>

@Image(source: <#file#>, alt: "<#accessible description#>")
}

@Steps {
@Step {
<#text#>

@Image(source: <#file#>, alt: "<#accessible description#>")
}

@Step {
<#text#>

@Code(name: "<#display name#>", file: <#filename.swift#>)
}
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6eba90f

Please sign in to comment.