Skip to content

Commit

Permalink
bump version to 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
atuooo committed Mar 28, 2017
1 parent 584117d commit 0f6d0ce
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 15 deletions.
8 changes: 4 additions & 4 deletions PacmanPageControl.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "PacmanPageControl"
s.version = "0.2.0"
s.version = "0.2.1"
s.summary = <<-DESC
Let's play Pac-Man.
DESC
Expand All @@ -18,7 +18,7 @@ Pod::Spec.new do |s|
:tag => s.version
}

s.source_files = "Sources/*.swift"
s.frameworks = "UIKit", "Foundation"
s.requires_arc = true
s.source_files = "Sources/*.swift"
s.pod_target_xcconfig = { 'SWIFT_VERSION' => '3.0' }
s.requires_arc = true
end
22 changes: 19 additions & 3 deletions Sources/PacmanLayer.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
//
// PacmanLayer.swift
// PacmanPageControl-Demo
// PacmanPageControl
//
// Created by ooatuoo on 2017/3/25.
// Copyright © 2017年 ooatuoo. All rights reserved.
// Copyright (c) 2017 oOatuo ([email protected])
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import UIKit

Expand Down
32 changes: 24 additions & 8 deletions Sources/PacmanPageControl.swift
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
//
// PacmanPageControl.swift
// PacmanPageControl-Demo
// PacmanPageControl
//
// Created by ooatuoo on 2017/3/25.
// Copyright © 2017年 ooatuoo. All rights reserved.
// Copyright (c) 2017 oOatuo ([email protected])
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import UIKit

class PacmanPageControl: UIView {
public class PacmanPageControl: UIView {

public var dotColorStyle: DotColorStyle = .random(hue: .random, luminosity: .light)
public var pacmanColorStyle: PacmanColorStyle = .changeWithDot
Expand All @@ -28,13 +44,13 @@ class PacmanPageControl: UIView {
fileprivate var pageCount: Int!
fileprivate var dotColors: [UIColor] = []

enum DotColorStyle {
public enum DotColorStyle {
case same(UIColor)
case different([UIColor])
case random(hue: Hue, luminosity: Luminosity)
}

enum PacmanColorStyle {
public enum PacmanColorStyle {
case fixed(UIColor)
case changeWithDot
}
Expand All @@ -45,7 +61,7 @@ class PacmanPageControl: UIView {
self.pageCount = pageCount
}

override func didMoveToSuperview() {
override public func didMoveToSuperview() {
super.didMoveToSuperview()

if dotInterval == 0 {
Expand Down Expand Up @@ -148,7 +164,7 @@ class PacmanPageControl: UIView {
}
}

required init?(coder aDecoder: NSCoder) {
required public init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
Expand Down

0 comments on commit 0f6d0ce

Please sign in to comment.