Skip to content

Commit d0548ca

Browse files
Fix init visibility
1 parent d3bf595 commit d0548ca

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Sources/SwiftUI-Utils/Modifiers/OnVisibleModifier.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,10 @@ public struct ScrollViewContextData {
9292
let frame: Binding<CGRect>
9393
let safeAreaInsets: EdgeInsets
9494
let coordinateSpaceName: String
95+
96+
public init(frame: Binding<CGRect>, safeAreaInsets: EdgeInsets, coordinateSpaceName: String) {
97+
self.frame = frame
98+
self.safeAreaInsets = safeAreaInsets
99+
self.coordinateSpaceName = coordinateSpaceName
100+
}
95101
}

SwiftUI-Utils.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = "SwiftUI-Utils"
3-
spec.version = "1.0.8"
3+
spec.version = "1.0.9"
44
spec.summary = "SwiftUI Utils library"
55
spec.description = "SwiftUI Utils is a library that contains several helpful components and extension methods to help you build the best SwiftUI apps."
66
spec.homepage = "https://github.com/mirego/swiftui-utils"

0 commit comments

Comments
 (0)