@@ -253,7 +253,7 @@ extension Theme {
253253 /// Adds a level 1 heading style to the theme.
254254 /// - Parameter body: A view builder that returns a customized level 1 heading.
255255 public func heading1< Body: View > (
256- @ViewBuilder body: @escaping ( _ configuration: BlockConfiguration ) -> Body
256+ @ViewBuilder body: @escaping @ Sendable @ MainActor ( _ configuration: BlockConfiguration ) -> Body
257257 ) -> Theme {
258258 var theme = self
259259 theme. heading1 = . init( body: body)
@@ -263,7 +263,7 @@ extension Theme {
263263 /// Adds a level 2 heading style to the theme.
264264 /// - Parameter body: A view builder that returns a customized level 2 heading.
265265 public func heading2< Body: View > (
266- @ViewBuilder body: @escaping ( _ label: BlockConfiguration ) -> Body
266+ @ViewBuilder body: @escaping @ Sendable @ MainActor ( _ label: BlockConfiguration ) -> Body
267267 ) -> Theme {
268268 var theme = self
269269 theme. heading2 = . init( body: body)
@@ -273,7 +273,7 @@ extension Theme {
273273 /// Adds a level 3 heading style to the theme.
274274 /// - Parameter body: A view builder that returns a customized level 3 heading.
275275 public func heading3< Body: View > (
276- @ViewBuilder body: @escaping ( _ label: BlockConfiguration ) -> Body
276+ @ViewBuilder body: @escaping @ Sendable @ MainActor ( _ label: BlockConfiguration ) -> Body
277277 ) -> Theme {
278278 var theme = self
279279 theme. heading3 = . init( body: body)
@@ -283,7 +283,7 @@ extension Theme {
283283 /// Adds a level 4 heading style to the theme.
284284 /// - Parameter body: A view builder that returns a customized level 4 heading.
285285 public func heading4< Body: View > (
286- @ViewBuilder body: @escaping ( _ label: BlockConfiguration ) -> Body
286+ @ViewBuilder body: @escaping @ Sendable @ MainActor ( _ label: BlockConfiguration ) -> Body
287287 ) -> Theme {
288288 var theme = self
289289 theme. heading4 = . init( body: body)
@@ -293,7 +293,7 @@ extension Theme {
293293 /// Adds a level 5 heading style to the theme.
294294 /// - Parameter body: A view builder that returns a customized level 5 heading.
295295 public func heading5< Body: View > (
296- @ViewBuilder body: @escaping ( _ label: BlockConfiguration ) -> Body
296+ @ViewBuilder body: @escaping @ Sendable @ MainActor ( _ label: BlockConfiguration ) -> Body
297297 ) -> Theme {
298298 var theme = self
299299 theme. heading5 = . init( body: body)
@@ -303,7 +303,7 @@ extension Theme {
303303 /// Adds a level 6 heading style to the theme.
304304 /// - Parameter body: A view builder that returns a customized level 6 heading.
305305 public func heading6< Body: View > (
306- @ViewBuilder body: @escaping ( _ label: BlockConfiguration ) -> Body
306+ @ViewBuilder body: @escaping @ Sendable @ MainActor ( _ label: BlockConfiguration ) -> Body
307307 ) -> Theme {
308308 var theme = self
309309 theme. heading6 = . init( body: body)
@@ -313,7 +313,7 @@ extension Theme {
313313 /// Adds a paragraph style to the theme.
314314 /// - Parameter body: A view builder that returns a customized paragraph.
315315 public func paragraph< Body: View > (
316- @ViewBuilder body: @escaping ( _ label: BlockConfiguration ) -> Body
316+ @ViewBuilder body: @escaping @ Sendable @ MainActor ( _ label: BlockConfiguration ) -> Body
317317 ) -> Theme {
318318 var theme = self
319319 theme. paragraph = . init( body: body)
@@ -323,7 +323,7 @@ extension Theme {
323323 /// Adds a blockquote style to the theme.
324324 /// - Parameter body: A view builder that returns a customized blockquote.
325325 public func blockquote< Body: View > (
326- @ViewBuilder body: @escaping ( _ label: BlockConfiguration ) -> Body
326+ @ViewBuilder body: @escaping @ Sendable @ MainActor ( _ label: BlockConfiguration ) -> Body
327327 ) -> Theme {
328328 var theme = self
329329 theme. blockquote = . init( body: body)
@@ -333,7 +333,7 @@ extension Theme {
333333 /// Adds a code block style to the theme.
334334 /// - Parameter body: A view builder that returns a customized code block.
335335 public func codeBlock< Body: View > (
336- @ViewBuilder body: @escaping ( _ configuration: CodeBlockConfiguration ) -> Body
336+ @ViewBuilder body: @escaping @ Sendable @ MainActor ( _ configuration: CodeBlockConfiguration ) -> Body
337337 ) -> Theme {
338338 var theme = self
339339 theme. codeBlock = . init( body: body)
@@ -343,7 +343,7 @@ extension Theme {
343343 /// Adds an image style to the theme.
344344 /// - Parameter body: A view builder that returns a customized image.
345345 public func image< Body: View > (
346- @ViewBuilder body: @escaping ( _ label: BlockConfiguration ) -> Body
346+ @ViewBuilder body: @escaping @ Sendable @ MainActor ( _ label: BlockConfiguration ) -> Body
347347 ) -> Theme {
348348 var theme = self
349349 theme. image = . init( body: body)
@@ -353,7 +353,7 @@ extension Theme {
353353 /// Adds a list style to the theme.
354354 /// - Parameter body: A view builder that returns a customized list.
355355 public func list< Body: View > (
356- @ViewBuilder body: @escaping ( _ label: BlockConfiguration ) -> Body
356+ @ViewBuilder body: @escaping @ Sendable @ MainActor ( _ label: BlockConfiguration ) -> Body
357357 ) -> Theme {
358358 var theme = self
359359 theme. list = . init( body: body)
@@ -363,7 +363,7 @@ extension Theme {
363363 /// Adds a list item style to the theme.
364364 /// - Parameter body: A view builder that returns a customized list item.
365365 public func listItem< Body: View > (
366- @ViewBuilder body: @escaping ( _ label: BlockConfiguration ) -> Body
366+ @ViewBuilder body: @escaping @ Sendable @ MainActor ( _ label: BlockConfiguration ) -> Body
367367 ) -> Theme {
368368 var theme = self
369369 theme. listItem = . init( body: body)
@@ -381,7 +381,7 @@ extension Theme {
381381 /// Adds a task list marker style to the theme.
382382 /// - Parameter body: A view builder that returns a customized task list marker.
383383 public func taskListMarker< Body: View > (
384- @ViewBuilder body: @escaping ( _ configuration: TaskListMarkerConfiguration ) -> Body
384+ @ViewBuilder body: @escaping @ Sendable @ MainActor ( _ configuration: TaskListMarkerConfiguration ) -> Body
385385 ) -> Theme {
386386 var theme = self
387387 theme. taskListMarker = . init( body: body)
@@ -401,7 +401,7 @@ extension Theme {
401401 /// Adds a bulleted list marker style to the theme.
402402 /// - Parameter body: A view builder that returns a customized bulleted list marker.
403403 public func bulletedListMarker< Body: View > (
404- @ViewBuilder body: @escaping ( _ configuration: ListMarkerConfiguration ) -> Body
404+ @ViewBuilder body: @escaping @ Sendable @ MainActor ( _ configuration: ListMarkerConfiguration ) -> Body
405405 ) -> Theme {
406406 var theme = self
407407 theme. bulletedListMarker = . init( body: body)
@@ -421,7 +421,7 @@ extension Theme {
421421 /// Adds a numbered list marker style to the theme.
422422 /// - Parameter body: A view builder that returns a customized numbered list marker.
423423 public func numberedListMarker< Body: View > (
424- @ViewBuilder body: @escaping ( _ configuration: ListMarkerConfiguration ) -> Body
424+ @ViewBuilder body: @escaping @ Sendable @ MainActor ( _ configuration: ListMarkerConfiguration ) -> Body
425425 ) -> Theme {
426426 var theme = self
427427 theme. numberedListMarker = . init( body: body)
@@ -431,7 +431,7 @@ extension Theme {
431431 /// Adds a table style to the theme.
432432 /// - Parameter body: A view builder that returns a customized table.
433433 public func table< Body: View > (
434- @ViewBuilder body: @escaping ( _ label: BlockConfiguration ) -> Body
434+ @ViewBuilder body: @escaping @ Sendable @ MainActor ( _ label: BlockConfiguration ) -> Body
435435 ) -> Theme {
436436 var theme = self
437437 theme. table = . init( body: body)
@@ -441,7 +441,7 @@ extension Theme {
441441 /// Adds a table cell style to the theme.
442442 /// - Parameter body: A view builder that returns a customized table cell.
443443 public func tableCell< Body: View > (
444- @ViewBuilder body: @escaping ( _ configuration: TableCellConfiguration ) -> Body
444+ @ViewBuilder body: @escaping @ Sendable @ MainActor ( _ configuration: TableCellConfiguration ) -> Body
445445 ) -> Theme {
446446 var theme = self
447447 theme. tableCell = . init( body: body)
@@ -450,7 +450,7 @@ extension Theme {
450450
451451 /// Adds a thematic break style to the theme.
452452 /// - Parameter body: A view builder that returns a customized thematic break.
453- public func thematicBreak< Body: View > ( @ViewBuilder body: @escaping ( ) -> Body ) -> Theme {
453+ public func thematicBreak< Body: View > ( @ViewBuilder body: @escaping @ Sendable @ MainActor ( ) -> Body ) -> Theme {
454454 var theme = self
455455 theme. thematicBreak = . init( body: body)
456456 return theme
0 commit comments