Create custom UI Button with 2 text colors? : <p>I have a UIButton mock-up and I want to make the number red as the mock-up. can someone help me to how to do it?</p>

<p><a href="https://i.stack.imgur.com/SF5W1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SF5W1.png" alt="enter image description here"></a>   </p>

<pre><code>func arrowRightButton(baseColor:UIColor){
    self.setTitleColor(baseColor, for: .normal)
    self.setTitleColor(baseColor.withAlphaComponent(0.3), for: .highlighted)

    guard let image = UIImage(named: "ArrowRight")?.withRenderingMode(.alwaysTemplate) else
    {
        return
    }
    guard let imageHighlight = UIImage(named: "ArrowRight")?.alpha(0.3)?.withRenderingMode(.alwaysTemplate) else
    {
        return
    }

    self.imageView?.contentMode = .scaleAspectFit

    self.setImage(image, for: .normal)
    self.setImage(imageHighlight, for: .highlighted)
    self.imageEdgeInsets = UIEdgeInsets(top: 0, left: self.bounds.size.width-image.size.width*1.5, bottom: 0, right: 0);
    self.layer.borderWidth = 1.0
    self.layer.borderColor = UIColor(red:0.29, green:0.64, blue:0.80, alpha:1.0).cgColor
    self.contentEdgeInsets = UIEdgeInsets(top: 10,left: 0,bottom: 10,right: 0)
}
</code></pre>
