-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestVC.swift
41 lines (29 loc) · 1.22 KB
/
testVC.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import UIKit
class testVC: UIViewController {
var box:CheckBox!
var box2:CheckBox!
var box3:CheckBox!
var box4:CheckBox!
var box5:CheckBox!
var box6:CheckBox!
override func viewDidLoad() {
super.viewDidLoad()
box = CheckBox(view: self.view, style: .oval)
box.create(size: .small , center: CGPoint(x: 50, y: 50))
box.animation = .scale
box2 = CheckBox(view: self.view, style: .rect)
box2.create(size: .small, center: CGPoint(x: 100, y: 50))
box3 = CheckBox(view: self.view, style: .oval)
box3.create(size: .small, center: CGPoint(x: 50, y: 100))
box4 = CheckBox(view: self.view, style: .rect)
box4.create(size: .small, center: CGPoint(x: 100, y: 100))
box5 = CheckBox(view: self.view, style: .oval)
box5.create(size: .small, center: CGPoint(x: 50, y: 150))
box5.windowBorderColor = UIColor.blue
box5.contentColor = UIColor.green
box6 = CheckBox(view: self.view, style: .rect)
box6.create(size: .small, center: CGPoint(x: 100, y: 150))
box6.windowBorderColor = UIColor.cyan
box6.contentColor = UIColor.orange
}
}//