Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ioannisj committed Dec 20, 2024
1 parent 7fb633f commit 3fa12e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PostHog/SwiftUI/PostHogTagViewModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
3. System renders SwiftUI view hierarchy in UIKit
4. Find the common ancestor of the PostHogTagAnchorView and PostHogTagView (e.g _UIHostingView)
5. Retrieve all of the descendants of common ancestor that are between PostHogTagView and PostHogTagAnchorView (excluding tagged views)

This logic is implemented in the `getTargetViews` function, which is called from PostHogTagView.

```
Expand Down Expand Up @@ -215,7 +215,7 @@
let id: UUID
var handler: (() -> Void)?

fileprivate init(
init(
id: UUID,
handler: ((PostHogTagViewController) -> Void)?
) {
Expand Down Expand Up @@ -332,7 +332,7 @@
- children: A function that takes an element and returns a sequence of its children.
- Returns: An AnySequence that iterates over all elements and their children.
*/
fileprivate func recursiveSequence<S: Sequence>(_ sequence: S, children: @escaping (S.Element) -> S) -> AnySequence<S.Element> {
private func recursiveSequence<S: Sequence>(_ sequence: S, children: @escaping (S.Element) -> S) -> AnySequence<S.Element> {
AnySequence {
var mainIterator = sequence.makeIterator()
// Current iterator, or `nil` if all sequences are exhausted:
Expand All @@ -354,7 +354,7 @@
/**
Boxing a weak reference to a reference type.
*/
fileprivate final class Weak<T: AnyObject> {
final class Weak<T: AnyObject> {
weak var value: T?

public init(_ wrappedValue: T? = nil) {
Expand Down

0 comments on commit 3fa12e2

Please sign in to comment.