TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jan 2016 |
SPMSupports SPM | ✗ |
Maintained by Tanner Nelson.
To run the example project, clone the repo, and run pod install
from the Example directory first.
SignalStrength is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SignalStrength"
Add a view to your Storyboard and set the class to SignalStrengthView
. The view is @IBDesignable
so you should immediately see the signal strength indicators and intrinsic sizing.
Add an outlet from the SignalStrengthView
to your ViewController to modify the SignalStrengthView
's signal
and flipped
properties.
This enum
property changes how many dots are filled in on the view. Use the example application provided in the CocoaPod to view how different SignalStrength
values affect the view.
enum SignalStrength {
case Excellent
case VeryGood
case Good
case Low
case VeryLow
case NoSignal
case Unknown
}
This UIColor
property changes the background color of the dots. This is great for inverting the color of the SignalStrengthView if it is in a selected UITableViewCell.
This Bool
property changes from which side the dots will begin to fill in or empty. Setting flipped to true for right aligned views is recommended.
sizing
and spacing
constants can be modified at compile time in the SignalStrengthDotView
class.
Tanner Nelson, [email protected]
SignalStrength is available under the MIT license. See the LICENSE file for more info.