Skip to content

Commit

Permalink
Add flipIfNeeded API
Browse files Browse the repository at this point in the history
  • Loading branch information
linjie-firework committed Feb 13, 2025
1 parent 0c72d98 commit c889f25
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion FireworkVideoUI.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'FireworkVideoUI'
s.version = '0.2.12'
s.version = '0.2.13'
s.summary = 'An extension library meant to provide easier interfaces for the FireworkVideoSDK.'
s.homepage = 'https://github.com/loopsocial/firework_ios_sdk_ui_extensions'
s.license = 'Apache License, Version 2.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,3 +274,11 @@ extension UIView {
}
}
}

public extension UIView {
func flipIfNeeded() {
if AppLanguageManager.shared.shouldHorizontalFlip {
self.viewType = .flip
}
}
}

0 comments on commit c889f25

Please sign in to comment.