Comments (12)
Also notice something for iOS with LTR, everything is flipped from LTR to RTL but the actually X-Axis still measures from 0 (on the far left) to the max on (the far right),
for example of set text to align left, it'll align right, if you set constraint left: 10 pt, it'll be constraint right 10 pt.
but if you measure the position of item standing at the far left, it'll be 0, while on the right it'll be something like 300...
I'm not expert, but I thought that info might help, will also try to debug the code locally and see what's happening exactly.
And btw: your lib. is AWESOME (I will stick with it for my app, even if it have bugs or whatever :D)
from carbonkit.
Notice: this issue Affects iOS 9 only, in iOS 8 the library is always displayed LTR
from carbonkit.
hey @shehabic
please can you post any screenshot? I will see this issues asap
from carbonkit.
I will upload a video shortly and share the link here
from carbonkit.
@ermalkaleci here it is: https://www.youtube.com/watch?v=7YqM54Z2fDU
from carbonkit.
I added this small piece of code to help me understand what's happening with RTL on ios 9+ :
bool RTL = [UIApplication sharedApplication].userInterfaceLayoutDirection == UIUserInterfaceLayoutDirectionRightToLeft;
NSLog(@"offsetX: %f, SegmentWidth: %f, ScrollViewWidth: %f", offset.x, segmentedWidth, scrollViewWidth);
NSLog(@"is Right to left: %@", RTL ? @"yes" : @"no");
around here:
https://github.com/ermalkaleci/CarbonKit/blob/master/CarbonKit/CarbonTabSwipeNavigation.m#L308
The issue I found is a bit complicated, the indexes of tabs are somehow flipped on RTL, also the condition of ScrollX vs Width is flipped, but only on iOS 9, so I found that the hack I did was a bit messy and doesn't qualify enough to be a quality PR.
from carbonkit.
@shehabic so on iOS 8, it works fine?
from carbonkit.
Yes because the lib is displayed LTR on iOS 8
But if you use the condition above, RTL will be true, though the lib is showing LTR but the rest of the UI is RTL
from carbonkit.
from carbonkit.
@shehabic can you try and let me know?
add this to your Podfile
pod 'CarbonKit', :git => 'https://github.com/ermalkaleci/CarbonKit.git', :commit => 'ae5830e'
pod update CarbonKit
from carbonkit.
👍 works perfectly, thanks, and keep up the great work, I think this lib. definitely deserves more Stars.
from carbonkit.
@shehabic I am deploying version 2.1.1
Make sure to update podfile
from carbonkit.
Related Issues (20)
- iOS 13 Crash and just find issues.Please repair it as soon as possible. HOT 1
- iOS 13 Crash and just find issues.Please repair it as soon as possible. HOT 28
- iOS 13 Crash: returned nil from -traitCollection, which is not allowed. HOT 1
- swipe not work in iOS 13 HOT 2
- swipe not work in iOS 13 in real device but in simulator working fine HOT 1
- Tab no more scrollable HOT 4
- Get error when initial CarbonTabSwipeNavigation in iOS 10
- How to change selected tab background color ? HOT 1
- NSInternalInconsistencyException error in iOS 13.2.2 and Xcode 11.3.1 Beta HOT 10
- clear the selected colour of segment controller HOT 4
- Full screen - Notch issue
- Change Selected index Background color
- CarbonKit toolbar Position change
- Method "initWithItems:toolbar:delegate" marked as deprecated
- Why it is showing like default segment controls?
- target view was not working
- Add a mask when tab changes HOT 1
- carbon kit freezes rest of the app works fine HOT 1
- how can I change colour of bar it looks like this and as per our requirement we need white colour HOT 2
- Unable to swipe after tapped on any tab
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carbonkit.