Skip to content

Commit

Permalink
Fix rightView layout (#412)
Browse files Browse the repository at this point in the history
* Fix rightView layout

* Bump podspec

---------

Co-authored-by: Tho Do <[email protected]>
  • Loading branch information
truongtho1603 and Tho Do authored Apr 28, 2023
1 parent eaa40b9 commit 7eab3ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion NotificationBanner/Classes/NotificationBanner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ open class NotificationBanner: BaseNotificationBanner {
let size = (rightView.frame.height > 0) ? min(44, rightView.frame.height) : 44
rightView.snp.makeConstraints({ (make) in
make.centerY.equalToSuperview().offset(heightAdjustment / 4)
make.left.equalToSuperview().offset(10)
make.right.equalToSuperview().offset(-10)
make.size.equalTo(size)
})
}
Expand Down
6 changes: 3 additions & 3 deletions NotificationBannerSwift.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Pod::Spec.new do |s|
s.name = 'NotificationBannerSwift'
s.version = '3.1.0'
s.version = '3.2.1'
s.summary = 'The easiest way to display in app notification banners in iOS.'

s.description = <<-DESC
Expand All @@ -17,7 +17,7 @@ NotificationBanner is an extremely customizable and lightweight library that mak
s.swift_version = '5.0'
s.source_files = 'NotificationBanner/Classes/**/*'

s.dependency 'SnapKit', '~> 5.0.1'
s.dependency 'MarqueeLabel', '~> 4.0.5'
s.dependency 'SnapKit', '~> 5.6.0'
s.dependency 'MarqueeLabel', '~> 4.3.0'

end

0 comments on commit 7eab3ee

Please sign in to comment.