-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathViewController.swift
More file actions
37 lines (31 loc) · 961 Bytes
/
ViewController.swift
File metadata and controls
37 lines (31 loc) · 961 Bytes
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
//
// ViewController.swift
// SwiftrotatingWheelExamples
//
// Created by Dennis Schmidt on 03.04.18.
// Copyright © 2018 Dennis Schmidt. All rights reserved.
//
import UIKit
import SwiftColorWheel
class ViewController: UIViewController {
@IBOutlet weak var standardWheel: ColorWheel!
@IBOutlet weak var rotatingWheel: RotatingColorWheel!
override func viewDidLoad() {
super.viewDidLoad()
standardWheel.delegate = self
rotatingWheel.delegate = self
standardWheel.padding = 13.0
standardWheel.centerRadius = 5.0
standardWheel.minCircleRadius = 1.0
standardWheel.maxCircleRadius = 5.0
standardWheel.innerPadding = 3
standardWheel.shiftDegree = 0
standardWheel.density = 1.0
standardWheel.highlightStrokeColor = nil
}
}
extension ViewController: ColorWheelDelegate {
func didSelect(color: UIColor) {
view.backgroundColor = color
}
}