From db83fbb94c3a0e8c58c270dc63d2583392a783c0 Mon Sep 17 00:00:00 2001 From: Ahmed Komsan Date: Tue, 25 Feb 2020 22:33:16 +0200 Subject: [PATCH] Fix : flip view to add support for right to left languages based on the view semantic --- FloatRatingView.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/FloatRatingView.swift b/FloatRatingView.swift index b46a8b3..8294250 100644 --- a/FloatRatingView.swift +++ b/FloatRatingView.swift @@ -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..