Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--disable redundantNilInit,redundantSelf,redundantType,unusedArguments
--disable redundantNilInit,redundantSelf,redundantType,unusedArguments,indent

--header strip
--indent tab
--ifdef no-indent
--extensionacl on-declarations
--patternlet inline
--ranges no-space
--trailing-commas always
16 changes: 8 additions & 8 deletions Examples/Demo/Demo/Pages.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ struct PageLink: View {
var body: some View {
ZStack {
RoundedRectangle(cornerRadius: 6, style: .continuous)
#if !os(tvOS) && !os(visionOS)
#if !os(tvOS) && !os(visionOS)
.fill(Color.blue.opacity(0.8))
#else
#else
.fill(Color.clear)
#endif
#endif
Text(title)
#if !os(tvOS)
#if !os(tvOS)
.foregroundColor(.white)
#endif
#endif
.font(.system(size: 18, weight: .medium, design: .rounded))
}
.frame(maxHeight: 50)
Expand Down Expand Up @@ -163,9 +163,9 @@ struct Code<Content: StringProtocol>: View {
.minimumScaleFactor(0.5)
.font(.system(size: 14, design: .monospaced))
.background(shape.stroke(Color(white: 0.1).opacity(0.35), lineWidth: 1))
.background(Color(white: 0.94).opacity(0.6).clipShape(shape))
#if !os(tvOS)
#if !os(tvOS)
.textSelection(.enabled)
#endif
#endif
.background(Color(white: 0.94).opacity(0.6).clipShape(shape))
}
}
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ package.dependencies = [
.package(url: "https://github.com/davdroman/swift-once-macro", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/swift-custom-dump", from: "1.0.0"), // dev
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.0.0"),
.package(url: "https://github.com/siteline/swiftui-introspect", "1.3.0" ..< "27.0.0"),
.package(url: "https://github.com/siteline/swiftui-introspect", "1.3.0"..<"27.0.0"),
]

for target in package.targets {
Expand Down
Loading