From d23363da3a4874b166b9fa61d0dbd28ddc626173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoni=20Silvestrovic=CC=8C?= Date: Tue, 13 Jul 2021 10:32:33 +0300 Subject: [PATCH] Fixed access control on more properties and initialisers --- .../ArrowOnlyTooltipConfig.swift | 4 +-- .../DefaultTooltipConfig.swift | 4 +-- .../TooltipConfigurations/TooltipConfig.swift | 36 +++++++++---------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Sources/SwiftUITooltip/TooltipConfigurations/ArrowOnlyTooltipConfig.swift b/Sources/SwiftUITooltip/TooltipConfigurations/ArrowOnlyTooltipConfig.swift index 8cb3eca..5387c26 100644 --- a/Sources/SwiftUITooltip/TooltipConfigurations/ArrowOnlyTooltipConfig.swift +++ b/Sources/SwiftUITooltip/TooltipConfigurations/ArrowOnlyTooltipConfig.swift @@ -40,9 +40,9 @@ struct ArrowOnlyTooltipConfig: TooltipConfig { var animationOffset: CGFloat = 10 var animationTime: Double = 1 - init() {} + public init() {} - init(side: TooltipSide) { + public init(side: TooltipSide) { self.side = side } } diff --git a/Sources/SwiftUITooltip/TooltipConfigurations/DefaultTooltipConfig.swift b/Sources/SwiftUITooltip/TooltipConfigurations/DefaultTooltipConfig.swift index 5ef438f..f4c9713 100644 --- a/Sources/SwiftUITooltip/TooltipConfigurations/DefaultTooltipConfig.swift +++ b/Sources/SwiftUITooltip/TooltipConfigurations/DefaultTooltipConfig.swift @@ -40,9 +40,9 @@ struct DefaultTooltipConfig: TooltipConfig { var animationOffset: CGFloat = 10 var animationTime: Double = 1 - init() {} + public init() {} - init(side: TooltipSide) { + public init(side: TooltipSide) { self.side = side } } diff --git a/Sources/SwiftUITooltip/TooltipConfigurations/TooltipConfig.swift b/Sources/SwiftUITooltip/TooltipConfigurations/TooltipConfig.swift index ab077b9..c8a4d6a 100644 --- a/Sources/SwiftUITooltip/TooltipConfigurations/TooltipConfig.swift +++ b/Sources/SwiftUITooltip/TooltipConfigurations/TooltipConfig.swift @@ -8,35 +8,35 @@ import SwiftUI -protocol TooltipConfig { - // MARK: Alignment +public protocol TooltipConfig { + // MARK: - Alignment - var side: TooltipSide { get set } - var margin: CGFloat { get set } + public var side: TooltipSide { get set } + public var margin: CGFloat { get set } // MARK: - Tooltip container - var borderRadius: CGFloat { get set } - var borderWidth: CGFloat { get set } - var borderColor: Color { get set } + public var borderRadius: CGFloat { get set } + public var borderWidth: CGFloat { get set } + public var borderColor: Color { get set } // MARK: - Margins and paddings - var contentPaddingLeft: CGFloat { get set } - var contentPaddingRight: CGFloat { get set } - var contentPaddingTop: CGFloat { get set } - var contentPaddingBottom: CGFloat { get set } + public var contentPaddingLeft: CGFloat { get set } + public var contentPaddingRight: CGFloat { get set } + public var contentPaddingTop: CGFloat { get set } + public var contentPaddingBottom: CGFloat { get set } - var contentPaddingEdgeInsets: EdgeInsets { get } + public var contentPaddingEdgeInsets: EdgeInsets { get } // MARK: - Tooltip arrow - var showArrow: Bool { get set } - var arrowWidth: CGFloat { get set } - var arrowHeight: CGFloat { get set } + public var showArrow: Bool { get set } + public var arrowWidth: CGFloat { get set } + public var arrowHeight: CGFloat { get set } // MARK: - Animation settings - var enableAnimation: Bool { get set } - var animationOffset: CGFloat { get set } - var animationTime: Double { get set } + public var enableAnimation: Bool { get set } + public var animationOffset: CGFloat { get set } + public var animationTime: Double { get set } }