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.

28 lines
639 B

  1. //
  2. // CircleBorderedView.swift
  3. // GME Remit
  4. //
  5. // Created by Shiran on 9/29/20.
  6. // Copyright © 2020 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import UIKit
  9. @IBDesignable
  10. class CircleBorderedView: UIView {
  11. @IBInspectable var cornerRadius: CGFloat = 0.0{
  12. didSet {
  13. self.layoutSubviews()
  14. }
  15. }
  16. override func layoutSubviews() {
  17. super.layoutSubviews()
  18. self.layer.cornerRadius = cornerRadius
  19. self.clipsToBounds = true
  20. self.layer.borderColor = UIColor.themeText.cgColor
  21. self.layer.borderWidth = 1.0
  22. self.backgroundColor = .white
  23. }
  24. }