Skip to content

Commit

Permalink
- podspec version update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketan-Simform authored and simform-solutions committed Feb 4, 2020
1 parent 7f6175f commit a3f7f73
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions SSCustomTabBar/Classes/SwiftUITabbar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public class SSTabConfiguration {
/// Up Animation point
public var upAnimationPoint: CGFloat?


/// Layer fill color
public var layerFillColor: UIColor

Expand Down Expand Up @@ -54,7 +53,6 @@ public class SSTabConfiguration {
public init(barHeight: CGFloat? = nil, upAnimationPoint: CGFloat? = nil, layerFillColor: UIColor = .white, waveHeight: CGFloat = 17, selectedTabTintColor: UIColor = UIColor.orange, unselectedTabTintColor: UIColor = .black, shadowColor: UIColor = .black, shadowRadius: CGFloat = .zero, shadowOffset: CGSize = CGSize(width: 0, height: -1)) {
self.barHeight = barHeight
self.upAnimationPoint = upAnimationPoint

self.layerFillColor = layerFillColor
self.waveHeight = waveHeight
self.selectedTabTintColor = selectedTabTintColor
Expand Down Expand Up @@ -110,7 +108,6 @@ public struct SwiftUITabBarController: UIViewControllerRepresentable {
/// Should hide tab bar
@Binding private var isTabBarHidden: Bool


// MARK: - Private declration
private let tabBarVC: SSCustomTabBarViewController
private let tabBar: SSCustomTabBar
Expand Down Expand Up @@ -154,22 +151,19 @@ public struct SwiftUITabBarController: UIViewControllerRepresentable {
}

public func updateUIViewController(_ tabBarConroller: UITabBarController, context: Context) {

if let barHeight = configuration.barHeight {
tabBarVC.barHeight = barHeight
}
if let upAnimationPoint = configuration.upAnimationPoint {
tabBarVC.upAnimationPoint = upAnimationPoint
}

tabBar.layerFillColor = configuration.layerFillColor
tabBar.waveHeight = configuration.waveHeight
tabBar.unselectedTabTintColor = configuration.unselectedTabTintColor
tabBar.shadowColor = configuration.shadowColor
tabBar.shadowRadius = configuration.shadowRadius
tabBar.shadowOffset = configuration.shadowOffset
tabBar.tintColor = configuration.selectedTabTintColor

tabBar.isHidden = isTabBarHidden
}

Expand Down
2 changes: 1 addition & 1 deletion SSCustomTabbar.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'SSCustomTabbar'
s.version = '2.0.5'
s.version = '2.0.6'
s.platform = :ios
s.swift_version = '5.0'
s.summary = 'Simple Animated tabbar with native control.'
Expand Down
4 changes: 2 additions & 2 deletions SwiftUI Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- SSCustomTabbar (2.0.2)
- SSCustomTabbar (2.0.6)

DEPENDENCIES:
- SSCustomTabbar (from `../`)
Expand All @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
SSCustomTabbar: 26241ace449f6d3e9dca43ad37e71da23f1aa03e
SSCustomTabbar: a52533e429bd40f52ce8d7ecb801f3521fbd56a0

PODFILE CHECKSUM: c2ba52075d251c51d90601a7a42b231baf400bcc

Expand Down

0 comments on commit a3f7f73

Please sign in to comment.