Skip to content

Instantly share code, notes, and snippets.

@maor365scores
Created February 16, 2021 13:23
Show Gist options
  • Save maor365scores/10b2de9c047ffa26774d50d4fde77078 to your computer and use it in GitHub Desktop.
Save maor365scores/10b2de9c047ffa26774d50d4fde77078 to your computer and use it in GitHub Desktop.
let isRTL: Bool = AppManager.sharedInstance()?.isCurrentUserLanguageRTL() ?? false
if isRTL
{
self.outcomeImageView.leftAnchor.constraint(equalTo: backgroundView.leftAnchor, constant: -35).isActive = true
}
else
{
self.outcomeImageView.rightAnchor.constraint(equalTo: backgroundView.rightAnchor, constant: -35).isActive = true
}
self.outcomeImageView.bottomAnchor.constraint(equalTo: backgroundView.bottomAnchor, constant: -22).isActive = true
self.outcomeImageView.isHidden = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment