Skip to content

Commit

Permalink
Bug fix: label alignment is wrong under certain conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
linjie-firework committed Nov 14, 2024
1 parent 72c8f1f commit 5b52ffb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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.2'
s.version = '0.2.3'
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 @@ -79,7 +79,11 @@ extension UILabel {
return .right
}
} else if layoutDirection == .ltr {
return .left
if textAlignment == .center {
return textAlignment
} else {
return .left
}
}
} else {
return textAlignment
Expand Down

0 comments on commit 5b52ffb

Please sign in to comment.