Skip to content

Commit

Permalink
Bug Fixed: #219
Browse files Browse the repository at this point in the history
  • Loading branch information
tilltue committed Sep 26, 2019
1 parent 8c12284 commit 8269c23
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion TLPhotoPicker.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'TLPhotoPicker'
s.version = '2.0.0'
s.version = '2.0.1'
s.summary = 'multiple phassets picker for iOS lib. like facebook'

# This description is used to generate tags and improve search results.
Expand Down
10 changes: 4 additions & 6 deletions TLPhotoPicker/Classes/TLAlbumPopView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,12 @@ open class TLAlbumPopView: UIView,PopupViewProtocol {

open override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
super.traitCollectionDidChange(previousTraitCollection)
if
#available(iOS 13.0, *),
let userInterfaceStyle = previousTraitCollection?.userInterfaceStyle
{
if #available(iOS 13.0, *) {
let userInterfaceStyle = self.traitCollection.userInterfaceStyle
if userInterfaceStyle.rawValue == 2 {
self.popupView.backgroundColor = UIColor.systemBackground
self.popupView.backgroundColor = .systemBackground
}else {
self.popupView.backgroundColor = UIColor.white
self.popupView.backgroundColor = .white
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions TLPhotoPicker/Classes/TLCollectionTableViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ open class TLCollectionTableViewCell: UITableViewCell {

open override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
super.traitCollectionDidChange(previousTraitCollection)
if #available(iOS 12.0, *) {
let userInterfaceStyle = traitCollection.userInterfaceStyle
if #available(iOS 13.0, *) {
let userInterfaceStyle = self.traitCollection.userInterfaceStyle
if userInterfaceStyle.rawValue == 2 {
self.contentView.backgroundColor = .black
self.contentView.backgroundColor = .systemBackground
}else {
self.contentView.backgroundColor = .white
}
Expand Down
2 changes: 1 addition & 1 deletion TLPhotoPicker/Classes/TLPhotosPickerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ open class TLPhotosPickerViewController: UIViewController {
open override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
super.traitCollectionDidChange(previousTraitCollection)
if #available(iOS 13.0, *) {
let userInterfaceStyle = traitCollection.userInterfaceStyle
let userInterfaceStyle = self.traitCollection.userInterfaceStyle
let image = TLBundle.podBundleImage(named: "pop_arrow")
if userInterfaceStyle.rawValue == 2 {
self.popArrowImageView.image = image?.colorMask(color: .systemBackground)
Expand Down

0 comments on commit 8269c23

Please sign in to comment.