             return isHidden
         }
     }
+
+    /// Flips the receiver horizontally if the given layout direction is .rightToLeft
+    /// It is necesary for ScrollViews and its content to have a right-to-left scroll behavior
+    ///
+    /// - Parameter layoutDirection: The current user interface layout direction
+    func flipIfNeeded(for layoutDirection: UIUserInterfaceLayoutDirection) {
+        if layoutDirection == .rightToLeft {
+            transform = CGAffineTransform(scaleX: -1, y: 1)
+        }
+    }
 }

        scrollView.alwaysBounceHorizontal = false
        scrollView.translatesAutoresizingMaskIntoConstraints = false
        scrollView.delegate = self
        if layoutDirection == .rightToLeft {
            scrollView.transform = CGAffineTransform(scaleX: -1, y: 1)
        }
        updateScrollViewInsets()
    }


        scrollableStackView.alignment = .center
        scrollableStackView.distribution = .equalSpacing
        scrollableStackView.translatesAutoresizingMaskIntoConstraints = false
        scrollableStackView.flipIfNeeded(for: layoutDirection)
    }


