added preview for views
This commit is contained in:
1 parent
1650145d4d
commit
1e2670903f
36 files changed
+744
-16
No files matched your search
@@ -50,3 +50,27 @@ struct ReplyThreadBracket: Shape {
|
||||
return path
|
||||
}
|
||||
}
|
||||
|
||||
#Preview("Кривая ответа") {
|
||||
VStack(spacing: 24) {
|
||||
ReplyThreadCurve(sourceDirection: .incoming)
|
||||
.stroke(Color.blue, lineWidth: 2)
|
||||
.frame(width: 90, height: 26)
|
||||
ReplyThreadCurve(sourceDirection: .outgoing)
|
||||
.stroke(Color.blue, lineWidth: 2)
|
||||
.frame(width: 90, height: 26)
|
||||
}
|
||||
.padding()
|
||||
}
|
||||
|
||||
#Preview("Скобка ветки") {
|
||||
HStack(spacing: 40) {
|
||||
ReplyThreadBracket(opensToTrailing: true)
|
||||
.stroke(Color.blue, style: StrokeStyle(lineWidth: 3, lineCap: .round))
|
||||
.frame(width: 38, height: 260)
|
||||
ReplyThreadBracket(opensToTrailing: false)
|
||||
.stroke(Color.blue, style: StrokeStyle(lineWidth: 3, lineCap: .round))
|
||||
.frame(width: 38, height: 260)
|
||||
}
|
||||
.padding()
|
||||
}
|
||||
Reference in new issue
Block a user