You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
// // PINComponents.swift // SRPinView // // Created by saroj raut on 1/23/20. // Copyright © 2020 saroj raut. All rights reserved. //
import UIKit
class Indicator: UIView { var isNeedClear = false override func draw(_ rect: CGRect) { super.draw(rect) self.layer.cornerRadius = rect.width/2 self.clipsToBounds = true self.layer.borderWidth = 2 self.layer.borderColor = UIColor.themeText.cgColor } }
class PinIndicator: UIButton { override func draw(_ rect: CGRect) { super.draw(rect) self.layer.cornerRadius = rect.height/2 self.clipsToBounds = true self.layer.borderWidth = 1 self.layer.borderColor = UIColor.themeText.cgColor } }
class DeleteOKIndicator: UIButton { override func draw(_ rect: CGRect) { super.draw(rect) self.layer.cornerRadius = rect.height/2 self.clipsToBounds = true self.layer.borderWidth = 0 self.layer.backgroundColor = #colorLiteral(red: 0.03843427449, green: 0.3333662152, blue: 0.780655086, alpha: 1) } }
class PhotoImageView: UIImageView { override func draw(_ rect: CGRect) { super.draw(rect) self.layer.cornerRadius = rect.width/2 self.clipsToBounds = true self.layer.borderColor = UIColor.themeText.cgColor } }
|