Skip to content

Commit

Permalink
Fixed access control on more properties and initialisers
Browse files Browse the repository at this point in the history
  • Loading branch information
bring-shrubbery committed Jul 13, 2021
1 parent 113ff85 commit d23363d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
36 changes: 18 additions & 18 deletions Sources/SwiftUITooltip/TooltipConfigurations/TooltipConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}

0 comments on commit d23363d

Please sign in to comment.