Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions FloatRatingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,13 @@ open class FloatRatingView: UIView {

// Refresh hides or shows full images
private func refresh() {
// Flip the View to support Right to Left Languages based on the view semantic
if #available(iOS 9.0, *) {
if ( self.semanticContentAttribute == .forceRightToLeft ){
self.transform = CGAffineTransform(scaleX: -1.0, y: 1.0);
}
}

for i in 0..<fullImageViews.count {
let imageView = fullImageViews[i]

Expand Down