Skip to content

Commit 098a800

Browse files
authored
Merge pull request #145 from gmarm/develop
Develop
2 parents ccb393f + 82672cc commit 098a800

13 files changed

+50
-4
lines changed

BetterSegmentedControl.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "BetterSegmentedControl"
3-
s.version = "2.0"
3+
s.version = "2.0.0"
44
s.swift_version = "5.1"
55
s.summary = "An easy to use, customizable replacement for UISegmentedControl & UISwitch."
66
s.description = <<-DESC
@@ -9,7 +9,7 @@ DESC
99
s.homepage = "https://github.com/gmarm/BetterSegmentedControl"
1010
s.license = 'MIT'
1111
s.author = { "George Marmaridis" => "[email protected]" }
12-
s.source = { :git => "https://github.com/gmarm/BetterSegmentedControl.git", :tag => "2.0" }
12+
s.source = { :git => "https://github.com/gmarm/BetterSegmentedControl.git", :tag => "2.0.0" }
1313
s.social_media_url = 'https://twitter.com/gmarmas'
1414
s.platform = :ios, '9.0'
1515
s.requires_arc = true

Package.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ let package = Package(
99
products: [
1010
.library(
1111
name: "BetterSegmentedControl",
12-
targets: ["BetterSegmentedControl"])
12+
targets: ["BetterSegmentedControl"]
13+
)
1314
],
1415
targets: [
1516
.target(
1617
name: "BetterSegmentedControl",
17-
path: "Pod")
18+
path: "Pod/Classes"
19+
)
1820
],
1921
swiftLanguageVersions: [.v5]
2022
)

Pod/Classes/BetterSegmentedControl+IBDesignable.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// Created by George Marmaridis on 20.10.20.
66
//
77

8+
#if canImport(UIKit)
9+
810
import UIKit
911

1012
extension BetterSegmentedControl {
@@ -36,3 +38,5 @@ extension BetterSegmentedControl {
3638
}
3739
}
3840
}
41+
42+
#endif

Pod/Classes/BetterSegmentedControl+IndicatorView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// Created by George Marmaridis on 19.10.20.
66
//
77

8+
#if canImport(UIKit)
9+
810
import UIKit
911

1012
extension BetterSegmentedControl {
@@ -37,3 +39,5 @@ extension BetterSegmentedControl {
3739
}
3840
}
3941
}
42+
43+
#endif

Pod/Classes/BetterSegmentedControl+Options.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
//
77
//
88

9+
#if canImport(UIKit)
10+
911
import UIKit
1012

1113
public extension BetterSegmentedControl {
@@ -30,3 +32,5 @@ public extension BetterSegmentedControl {
3032
case cornerRadius(CGFloat)
3133
}
3234
}
35+
36+
#endif

Pod/Classes/BetterSegmentedControl+PredefinedStyles.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// Created by George Marmaridis on 18.10.20.
66
//
77

8+
#if canImport(UIKit)
9+
810
import UIKit
911

1012
public extension BetterSegmentedControl {
@@ -21,3 +23,5 @@ public extension BetterSegmentedControl {
2123
return control
2224
}
2325
}
26+
27+
#endif

Pod/Classes/BetterSegmentedControl+UIPointerInteractionDelegate.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// Created by George Marmaridis on 19.10.20.
66
//
77

8+
#if canImport(UIKit)
9+
810
import UIKit
911

1012
@available(iOS 13.4, *)
@@ -32,3 +34,5 @@ extension BetterSegmentedControl: UIPointerInteractionDelegate {
3234
return .init(effect: .highlight(.init(view: view)))
3335
}
3436
}
37+
38+
#endif

Pod/Classes/BetterSegmentedControl.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// Copyright © 2020 George Marmaridis. All rights reserved.
66
//
77

8+
#if canImport(UIKit)
9+
810
import UIKit
911

1012
@IBDesignable open class BetterSegmentedControl: UIControl {
@@ -499,3 +501,5 @@ extension BetterSegmentedControl: UIGestureRecognizerDelegate {
499501
return super.gestureRecognizerShouldBegin(gestureRecognizer)
500502
}
501503
}
504+
505+
#endif

Pod/Classes/Helpers/UIColor+Helpers.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// Created by George Marmaridis on 16.10.20.
66
//
77

8+
#if canImport(UIKit)
9+
810
import UIKit
911

1012
extension UIColor {
@@ -18,3 +20,5 @@ extension UIColor {
1820
.black
1921
}
2022
}
23+
24+
#endif

Pod/Classes/Helpers/UIView+Helpers.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
// Created by George Marmaridis on 19.10.20.
66
//
77

8+
#if canImport(UIKit)
9+
810
import UIKit
911

1012
extension UIView {
1113
var width: CGFloat { bounds.width }
1214
var height: CGFloat { bounds.height }
1315
}
16+
17+
#endif

0 commit comments

Comments
 (0)