Skip to content

Commit

Permalink
Update bodyError
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Ye committed Feb 4, 2025
1 parent 12581c8 commit c8de8e2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ extension _SceneModifier {
extension _SceneModifier where Body == Never {
@inline(__always)
public func body(content _: SceneContent) -> Body {
preconditionFailure("body() should not be called on \(Self.self)")
preconditionFailure("body() should not be called on \(Self.self).")
}
}
2 changes: 1 addition & 1 deletion Sources/OpenSwiftUI/Scene/Core/Scene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ extension Never: Scene {}

extension Scene {
func sceneBodyError() -> Never {
preconditionFailure("body() should not be called on \(Self.self)")
preconditionFailure("body() should not be called on \(Self.self).")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ extension ViewModifier where Self: _GraphInputsModifier, Body == Never {

extension ViewModifier {
func bodyError() -> Never {
preconditionFailure("body() should not be called on \(Self.self)")
preconditionFailure("body() should not be called on \(Self.self).")
}
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/OpenSwiftUICore/View/View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ extension PrimitiveView {

extension View {
package func bodyError() -> Never {
preconditionFailure("body() should not be called on \(Self.self)")
preconditionFailure("body() should not be called on \(Self.self).")
}
}

Expand Down

0 comments on commit c8de8e2

Please sign in to comment.