Skip to content

Commit 1e0b7a9

Browse files
committed
Remove extension collisions
1 parent 9b99ad4 commit 1e0b7a9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

swift-sdk/Internal/ClassExtensions.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
import Foundation
77
import UIKit
88

9-
public extension Array {
9+
extension Array {
1010
func take(_ size: Int) -> [[Element]] {
1111
return stride(from: 0, to: count, by: size).map {
1212
Array(self[$0 ..< Swift.min($0 + size, count)])
1313
}
1414
}
1515
}
1616

17-
public extension Dictionary where Key == AnyHashable, Value == Any {
17+
extension Dictionary where Key == AnyHashable, Value == Any {
1818
func getValue(for key: JsonKey) -> Any? {
1919
return self[key.jsonKey]
2020
}
@@ -40,7 +40,7 @@ public extension Dictionary where Key == AnyHashable, Value == Any {
4040
}
4141
}
4242

43-
public extension Bundle {
43+
extension Bundle {
4444
var appPackageName: String? {
4545
return bundleIdentifier
4646
}
@@ -72,7 +72,7 @@ extension Encodable {
7272
}
7373
}
7474

75-
public extension UIColor {
75+
extension UIColor {
7676
convenience init?(hex: String) {
7777
guard let int = Int(hex, radix: 16) else {
7878
return nil
@@ -86,13 +86,13 @@ public extension UIColor {
8686
}
8787
}
8888

89-
public extension Data {
89+
extension Data {
9090
func hexString() -> String {
9191
return map { String(format: "%02.2hhx", $0) }.joined()
9292
}
9393
}
9494

95-
public extension Int {
95+
extension Int {
9696
func times(_ f: () -> Void) {
9797
if self > 0 {
9898
for _ in 0 ..< self {

0 commit comments

Comments
 (0)