BTUIKCVVBackVectorArtView.m 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #import "BTUIKCVVBackVectorArtView.h"
  2. @implementation BTUIKCVVBackVectorArtView
  3. - (void)drawArt {
  4. //// Color Declarations
  5. UIColor* color1 = [UIColor colorWithRed: 0.124 green: 0.132 blue: 0.138 alpha: 0.1];
  6. UIColor* color2 = self.highlightColor ?: color1;
  7. UIColor* color3 = [UIColor colorWithRed: 1 green: 1 blue: 1 alpha: 1];
  8. //// Page-1
  9. {
  10. //// CVV-Back
  11. {
  12. //// Rectangle Drawing
  13. UIBezierPath* rectanglePath = [UIBezierPath bezierPathWithRect: CGRectMake(0, 8, 87, 12)];
  14. [color1 setFill];
  15. [rectanglePath fill];
  16. //// Rounded Rectangle Drawing
  17. UIBezierPath* roundedRectanglePath = [UIBezierPath bezierPathWithRoundedRect: CGRectMake(53, 30, 26, 18) cornerRadius: 9];
  18. [color2 setFill];
  19. [roundedRectanglePath fill];
  20. //// Rectangle 2 Drawing
  21. UIBezierPath* rectangle2Path = [UIBezierPath bezierPathWithRect: CGRectMake(61, 36, 2, 6)];
  22. [color3 setFill];
  23. [rectangle2Path fill];
  24. //// Rectangle 3 Drawing
  25. UIBezierPath* rectangle3Path = [UIBezierPath bezierPathWithRect: CGRectMake(65, 36, 2, 6)];
  26. [color3 setFill];
  27. [rectangle3Path fill];
  28. //// Rectangle 4 Drawing
  29. UIBezierPath* rectangle4Path = [UIBezierPath bezierPathWithRect: CGRectMake(69, 36, 2, 6)];
  30. [color3 setFill];
  31. [rectangle4Path fill];
  32. }
  33. }
  34. }
  35. @end