Skip to content

Commit

Permalink
Changed toast default tint to white
Browse files Browse the repository at this point in the history
  • Loading branch information
amrit42087 committed May 16, 2019
1 parent d264e56 commit 5d52545
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Swift-Utils/Classes/Extensions+UIView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ extension UIView {
lockView.topAnchor.constraint(equalTo: self.topAnchor).isActive = true

let imageView = UIImageView()
imageView.tintColor = tintColor
imageView.tintColor = tintColor != nil ? tintColor : .white

imageView.translatesAutoresizingMaskIntoConstraints = false

let logoImageView = UIImageView()
Expand All @@ -83,6 +84,7 @@ extension UIView {
logoImageView.centerXAnchor.constraint(equalTo: self.centerXAnchor).isActive = true
logoImageView.centerYAnchor.constraint(equalTo: self.centerYAnchor).isActive = true

//
if mainImage == nil {
let bundle = Bundle(for: ASCustomizableView.self)

Expand Down

0 comments on commit 5d52545

Please sign in to comment.