Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maximbilan/signalstrengthindicator
Signal Strength Indicator
https://github.com/maximbilan/signalstrengthindicator
connection indicator ios network signal swift
Last synced: 3 months ago
JSON representation
Signal Strength Indicator
- Host: GitHub
- URL: https://github.com/maximbilan/signalstrengthindicator
- Owner: maximbilan
- License: mit
- Created: 2018-01-22T07:49:30.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-26T19:03:53.000Z (over 3 years ago)
- Last Synced: 2024-10-28T11:51:18.995Z (3 months ago)
- Topics: connection, indicator, ios, network, signal, swift
- Language: Swift
- Homepage:
- Size: 104 KB
- Stars: 11
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Signal Strength Indicator
[![Version](https://img.shields.io/cocoapods/v/SignalStrengthIndicator.svg?style=flat)](http://cocoadocs.org/docsets/SignalStrengthIndicator)
[![License](https://img.shields.io/cocoapods/l/SignalStrengthIndicator.svg?style=flat)](http://cocoadocs.org/docsets/SignalStrengthIndicator)
[![Platform](https://img.shields.io/cocoapods/p/SignalStrengthIndicator.svg?style=flat)](http://cocoadocs.org/docsets/SignalStrengthIndicator)
[![CocoaPods](https://img.shields.io/cocoapods/dt/SignalStrengthIndicator.svg)](https://cocoapods.org/pods/SignalStrengthIndicator)
[![CocoaPods](https://img.shields.io/cocoapods/dm/SignalStrengthIndicator.svg)](https://cocoapods.org/pods/SignalStrengthIndicator)## Preview
## Description
It's just a UI component, shows an indicator of the connectivity, like a standard iOS cellular indicator. The control has simple customization: color, edges, spacing.
## Installation
CocoaPods:
pod 'SignalStrengthIndicator'Manual:
Copy SignalStrengthIndicator.swift to your project.## Usage
There is an example in the repository. The example shows how to add the control via storyboard (Interface Builder). Also, I can easily add via code.
let indicator = SignalStrengthIndicator()// Set up frame
view.addSubview(indicator)
For controling the level of the indicator you need to use the following property:
indicator.level = .goodThere is 6 cases of indication:
enum Level: Int {
case noSignal
case veryLow
case low
case good
case veryGood
case excellent
}## Customization
Color:
indicator.color = UIColor.graySpacing between bars:
indicator.spacing = 5Margins:
indicator.edgeInsets = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)## License
SignalStrengthIndicator is available under the MIT license. See the LICENSE file for more info.