Skip to content

Commit d1606cf

Browse files
committed
Chore: init도 Public 하게
1 parent c8ccf3f commit d1606cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/SCToolTip/SCToolTip.swift

+7
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ public struct SCToolTipView: View {
3737

3838
var onTapGesture: (() -> ())
3939

40+
public init(description: String, arrowAlignment: SCToolTipArrowAlignment = .BottomCenter, showCancelButton: Bool = true, onTapGesture: @escaping () -> Void) {
41+
self.description = description
42+
self.arrowAlignment = arrowAlignment
43+
self.showCancelButton = showCancelButton
44+
self.onTapGesture = onTapGesture
45+
}
46+
4047
public var body: some View {
4148

4249
ZStack {

0 commit comments

Comments
 (0)