Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 52174249fa | |||
| 2ea00f8238 |
@@ -1,6 +1,6 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'RAMAnimatedTabBarController'
|
||||
s.version = '5.1.0'
|
||||
s.version = '5.2.0'
|
||||
s.license = 'MIT'
|
||||
s.summary = 'RAMAnimatedTabBarController is a Swift module for adding animation to tabbar items.'
|
||||
s.homepage = 'https://github.com/Ramotion/animated-tab-bar'
|
||||
|
||||
@@ -157,9 +157,11 @@ open class RAMAnimatedTabBarController: UITabBarController {
|
||||
|
||||
private func layoutContainers() {
|
||||
let itemWidth = tabBar.bounds.width / CGFloat(containers.count)
|
||||
let isRTL = tabBar.userInterfaceLayoutDirection == .rightToLeft
|
||||
|
||||
for (index, container) in containers.enumerated() {
|
||||
let frame = CGRect(x: itemWidth * CGFloat(index), y: 0, width: itemWidth, height: Theme.tabBarHeight)
|
||||
let i = isRTL ? (containers.count - 1 - index) : index
|
||||
let frame = CGRect(x: itemWidth * CGFloat(i), y: 0, width: itemWidth, height: Theme.tabBarHeight)
|
||||
container.frame = frame
|
||||
|
||||
if let item = tabBar.items?.at(index) as? RAMAnimatedTabBarItem {
|
||||
@@ -323,3 +325,10 @@ extension RAMAnimatedTabBarController {
|
||||
public static let defaultIconVerticalOffset: CGFloat = -5
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
extension UIView {
|
||||
var userInterfaceLayoutDirection: UIUserInterfaceLayoutDirection {
|
||||
return UIView.userInterfaceLayoutDirection(for: self.semanticContentAttribute)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<a href="https://www.ramotion.com/agency/app-development?utm_source=gthb&utm_medium=repo&utm_campaign=animated-tab-bar"><img src="https://github.com/Ramotion/animated-tab-bar/blob/master/header.png"></a>
|
||||
<a href="https://www.ramotion.com/agency/app-development/?utm_source=gthb&utm_medium=repo&utm_campaign=animated-tab-bar"><img src="https://github.com/Ramotion/animated-tab-bar/blob/master/header.png"></a>
|
||||
|
||||
<a href="https://github.com/Ramotion/animated-tab-bar">
|
||||
<img align="left" src="https://github.com/Ramotion/animated-tab-bar/blob/master/Screenshots/animatedTabBar.gif" width="480" height="360" /></a>
|
||||
@@ -13,7 +13,7 @@ ___
|
||||
|
||||
|
||||
<p><h6>We specialize in the designing and coding of custom UI for Mobile Apps and Websites.</h6>
|
||||
<a href="https://www.ramotion.com/agency/app-development?utm_source=gthb&utm_medium=repo&utm_campaign=animated-tab-bar">
|
||||
<a href="https://www.ramotion.com/agency/app-development/?utm_source=gthb&utm_medium=repo&utm_campaign=animated-tab-bar">
|
||||
<img src="https://github.com/ramotion/gliding-collection/raw/master/contact_our_team@2x.png" width="187" height="34"></a>
|
||||
</p>
|
||||
<p><h6>Stay tuned for the latest updates:</h6>
|
||||
@@ -157,7 +157,7 @@ Try this UI component and more like this in our iOS app. Contact us if intereste
|
||||
<a href="https://itunes.apple.com/app/apple-store/id1182360240?pt=550053&ct=animated-tab-bar&mt=8" >
|
||||
<img src="https://github.com/ramotion/gliding-collection/raw/master/app_store@2x.png" width="117" height="34"></a>
|
||||
|
||||
<a href="https://www.ramotion.com/agency/app-development?utm_source=gthb&utm_medium=repo&utm_campaign=animated-tab-bar">
|
||||
<a href="https://www.ramotion.com/agency/app-development/?utm_source=gthb&utm_medium=repo&utm_campaign=animated-tab-bar">
|
||||
<img src="https://github.com/ramotion/gliding-collection/raw/master/contact_our_team@2x.png" width="187" height="34"></a>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
Reference in New Issue
Block a user