Skip to content

Commit

Permalink
Merge branch 'master' into prcontrol
Browse files Browse the repository at this point in the history
  • Loading branch information
fredyshox authored Jun 18, 2020
2 parents 979d513 + baf9f9d commit 9677f74
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Sources/PageControlTheme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,28 @@ public struct PageControlTheme {
public var yOffset: CGFloat
public var alignment: Alignment?

public init(
backgroundColor: Color,
dotActiveColor: Color,
dotInactiveColor: Color,
dotSize: CGFloat,
spacing: CGFloat,
padding: CGFloat,
xOffset: CGFloat,
yOffset: CGFloat,
alignment: Alignment? = nil
) {
self.backgroundColor = backgroundColor
self.dotActiveColor = dotActiveColor
self.dotInactiveColor = dotInactiveColor
self.dotSize = dotSize
self.spacing = spacing
self.padding = padding
self.xOffset = xOffset
self.yOffset = yOffset
self.alignment = alignment
}

public static var `default`: PageControlTheme {
#if os(iOS)
return PageControlTheme(
Expand Down

0 comments on commit 9677f74

Please sign in to comment.