Skip to content

Commit

Permalink
Merge pull request #9 from quassummanus/bugfix/access-control-final-fix
Browse files Browse the repository at this point in the history
Fixed access control on more properties and initialisers
  • Loading branch information
bring-shrubbery authored Jul 13, 2021
2 parents 9b1a83f + fe6906b commit 0d19691
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public struct ArrowOnlyTooltipConfig: TooltipConfig {
public var animationOffset: CGFloat = 10
public var animationTime: Double = 1

init() {}
public init() {}

init(side: TooltipSide) {
public init(side: TooltipSide) {
self.side = side
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public struct DefaultTooltipConfig: TooltipConfig {
public var animationOffset: CGFloat = 10
public var animationTime: Double = 1

init() {}
public init() {}

init(side: TooltipSide) {
public init(side: TooltipSide) {
self.side = side
}
}
34 changes: 17 additions & 17 deletions Sources/SwiftUITooltip/TooltipConfigurations/TooltipConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,34 @@
import SwiftUI

public protocol TooltipConfig {
// MARK: Alignment
// 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 }
}

0 comments on commit 0d19691

Please sign in to comment.