Skip to content

Commit e75047b

Browse files
committed
Add more spaces to reduce size of PR
1 parent 04dacb3 commit e75047b

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

Sources/LiveViewNative/Stylesheets/ViewReference.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,13 @@ struct ToolbarTreeBuilder<R: RootRegistry> {
189189
return ToolbarContentBuilder.buildBlock(f(.e(ToolbarError.badChildCount(e.count)), c), f(nil, c), f(nil, c), f(nil, c), f(nil, c), f(nil, c), f(nil, c), f(nil, c), f(nil, c), f(nil, c))
190190
}
191191
}
192-
192+
193193
// alias for typing
194194
@inline(__always)
195195
fileprivate func f(_ n: FromNodeValue?, _ c: LiveContextStorage<R>) -> some ToolbarContent {
196196
return n.flatMap({ fromNode($0, context: c) })
197197
}
198-
198+
199199
@ToolbarContentBuilder
200200
fileprivate func fromNode(_ node: FromNodeValue, context: LiveContextStorage<R>) -> some ToolbarContent {
201201
// ToolbarTreeBuilder.fromNode may not be called with a root or leaf node
@@ -259,13 +259,13 @@ struct CustomizableToolbarTreeBuilder<R: RootRegistry> {
259259
return ToolbarContentBuilder.buildBlock(f(.e(ToolbarError.badChildCount(e.count)), c), f(nil, c), f(nil, c), f(nil, c), f(nil, c), f(nil, c), f(nil, c), f(nil, c), f(nil, c), f(nil, c))
260260
}
261261
}
262-
262+
263263
// alias for typing
264264
@inline(__always)
265265
fileprivate func f(_ n: FromNodeValue?, _ c: LiveContextStorage<R>) -> some CustomizableToolbarContent {
266266
return n.flatMap({ fromNode($0, context: c) })
267267
}
268-
268+
269269
@ToolbarContentBuilder
270270
fileprivate func fromNode(_ node: FromNodeValue, context: LiveContextStorage<R>) -> some CustomizableToolbarContent {
271271
// CustomizableToolbarTreeBuilder.fromNode may not be called with a root or leaf node

Sources/LiveViewNative/Utils/DOM.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ import LiveViewNativeCore
2626
public struct ElementNode {
2727
let node: Node
2828
let data: Element
29-
29+
3030
init(node: Node, data: Element) {
3131
self.node = node
3232
self.data = data
3333
}
34-
34+
3535
/// A sequence representing this element's direct children.
3636
public func children() -> NodeChildrenSequence { node.children() }
3737
/// A sequence that traverses the nested child nodes of this element in depth-first order.
3838
public func depthFirstChildren() -> NodeDepthFirstChildrenSequence { node.depthFirstChildren() }
3939
/// A sequence representing this element's direct children that are elements.
4040
public func elementChildren() -> [ElementNode] { node.children().compactMap({ $0.asElement() }) }
41-
41+
4242
/// The namespace of the element.
4343
public var namespace: String? { data.name.namespace }
4444
/// The tag name of the element.

Sources/LiveViewNative/Views/Controls and Indicators/Links/ShareLink.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,24 +98,24 @@ struct ShareLink<Root: RootRegistry>: View {
9898
self.value = try itemsDecoder.decode([String].self, from: data)
9999
}
100100
}
101-
101+
102102
/// A string to share.
103103
@_documentation(visibility: public)
104104
private var item: String?
105-
105+
106106
public var body: some View {
107107
#if !os(tvOS)
108108
let useDefaultLabel = $liveElement.childNodes.filter({
109109
guard case let .nodeElement(data) = $0.data() else { return true }
110110
return data.name.name != "SharePreview"
111111
}).isEmpty
112-
112+
113113
let subject = self.subject.flatMap(SwiftUI.Text.init)
114114
let message = self.message.flatMap(SwiftUI.Text.init)
115-
115+
116116
if let items = items?.value {
117117
let previews = previews(for: items)
118-
118+
119119
if useDefaultLabel {
120120
switch previews {
121121
case nil:

Sources/LiveViewNative/Views/Layout Containers/Collection Containers/List.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ struct List<Root: RootRegistry>: View {
167167
}
168168
#endif
169169
}
170-
170+
171171
private var content: some View {
172172
forEach(
173173
nodes: $liveElement.childNodes.filter({
@@ -178,7 +178,7 @@ struct List<Root: RootRegistry>: View {
178178
.onDelete(perform: onDeleteHandler)
179179
.onMove(perform: onMoveHandler)
180180
}
181-
181+
182182
private var onDeleteHandler: ((IndexSet) -> Void)? {
183183
guard delete.event != nil else { return nil }
184184
return { indices in

0 commit comments

Comments
 (0)