To run the example project, clone the repo, and run pod install
from the Example directory first.
HLSignalView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "HLSignalView"
Add following at the bottom of your Podfile
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '2.3' # or '3.0'
end
end
end
- Add an
UIView
onto any view controller of storyboard - Edit
Identity Inspector
: Custom Class
- Class: HLSignalView
- Module: HLSignalView
- Edit
Attributes Inspector
:
- Intensity: initial signal intensity (0 - 5)
- Color Inactive: initial inactive color
- Color Active: initial active color
import HLSignalView
- intensity: signal intensity (0 - 5)
- colorInactive: inactive color of the signal view
- colorActive: active color of the signal view
Herman Liang, hermanliang80@gmail.com
HLSignalView is available under the MIT license. See the LICENSE file for more info.