Skip to content

Commit

Permalink
[Chore] public 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
YoonAh-dev committed Nov 8, 2021
1 parent b29e31b commit c12430b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CDSKit/Source/PageControl/CDSPlainPageControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class CDSPlainPageControl: UIView {

// MARK: - Override Methods

override func draw(_ rect: CGRect) {
public override func draw(_ rect: CGRect) {
(0..<pages).forEach { page in
(page == selectedPage ? selectedColor : dotColor).setFill()

Expand Down
4 changes: 2 additions & 2 deletions CDSKit/Source/PageControl/CDSWidePageControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ public class CDSWidePageControl: UIView {

// MARK: - Override Methods

override var intrinsicContentSize: CGSize {
public override var intrinsicContentSize: CGSize {
let width = CGFloat(pages) * dotSize + CGFloat(pages - 1) * spacing
let height = dotSize

return CGSize(width: width, height: height)
}

override func draw(_ rect: CGRect) {
public override func draw(_ rect: CGRect) {
(0..<pages).forEach { page in
var center = CGPoint(x: 0, y: 0)
let currentDotSize = (page == selectedPage ? selectedDotSize : dotSize)
Expand Down

0 comments on commit c12430b

Please sign in to comment.