Skip to content

Commit

Permalink
🧑‍💻 (GameEngineKit): TextAnswerView - Add preview
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas authored and HPezz committed Sep 20, 2023
1 parent 6458c50 commit 0083f10
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,12 @@ struct ColoredAnswerView: View {
view
}
}

struct ColoredAnswerView_Previews:
PreviewProvider
{
static var previews: some View {
ColoredAnswerView(color: "red", size: 500, status: .playingRightAnimation)
.previewInterfaceOrientation(.landscapeLeft)
}
}
9 changes: 9 additions & 0 deletions Modules/GameEngineKit/Sources/UI/Views/TextAnswerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,12 @@ struct TextAnswerView: View {
view
}
}

struct TextAnswerView_Previews:
PreviewProvider
{
static var previews: some View {
TextAnswerView(text: "Hello", size: 500, status: .playingRightAnimation)
.previewInterfaceOrientation(.landscapeLeft)
}
}

0 comments on commit 0083f10

Please sign in to comment.