Control library for iOS written on Swift
- Set control image
- Configure image size by percent
- Interface Builder preview
- Set control actions with blocks
control.image = UIImage(named: "volumeUp")
control.imageScale = 0.7
control.addActionBlock(event: .touchUpInside) { control in
print("Volume up button pressed")
}
Copy the SMControl/SMControl.swift
file into your project.
Alexey Siginur [email protected]
SMControl source code is available under the MIT License.