Skip to content

Commit 84c686c

Browse files
committed
Update sample preview.
1 parent 06a2af9 commit 84c686c

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

Sources/LaTeXSwiftUI/LaTeX.swift

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,16 +228,39 @@ extension LaTeX {
228228
struct LaTeX_Previews: PreviewProvider {
229229
static var previews: some View {
230230
VStack {
231+
LaTeX("Hello, $\\LaTeX$!")
232+
.font(.largeTitle)
233+
.foregroundStyle(
234+
LinearGradient(
235+
colors: [.red, .orange, .yellow, .green, .blue, .indigo, .purple],
236+
startPoint: .leading,
237+
endPoint: .trailing
238+
)
239+
)
240+
231241
LaTeX("Hello, $\\LaTeX$!")
232242
.font(.title)
243+
.foregroundColor(.red)
233244

234245
LaTeX("Hello, $\\LaTeX$!")
235246
.font(.title2)
236-
.foregroundColor(.cyan)
247+
.foregroundColor(.orange)
237248

238249
LaTeX("Hello, $\\LaTeX$!")
239250
.font(.title3)
240-
.foregroundColor(.pink)
251+
.foregroundColor(.yellow)
252+
253+
LaTeX("Hello, $\\LaTeX$!")
254+
.font(.body)
255+
.foregroundColor(.green)
256+
257+
LaTeX("Hello, $\\LaTeX$!")
258+
.font(.caption)
259+
.foregroundColor(.indigo)
260+
261+
LaTeX("Hello, $\\LaTeX$!")
262+
.font(.caption2)
263+
.foregroundColor(.purple)
241264
}
242265
.fontDesign(.serif)
243266
.previewLayout(.sizeThatFits)

0 commit comments

Comments
 (0)