Latest 0.1.1
Homepage https://github.com/maximbilan/SignalStrengthIndicator
License MIT
Platforms ios 8.0, requires ARC
Authors

Signal Strength Indicator

Version
License
Platform
CocoaPods
CocoaPods

Preview

preview text

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 = .good

There 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.gray

Spacing between bars:

indicator.spacing = 5

Margins:

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.

Latest podspec

{
    "name": "SignalStrengthIndicator",
    "version": "0.1.1",
    "summary": "Signal Strength Indicator",
    "description": "Indicator shows a level of connection, like as default iOS indicator of cellular network",
    "homepage": "https://github.com/maximbilan/SignalStrengthIndicator",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "Maxim Bilan": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/maximbilan/SignalStrengthIndicator.git",
        "tag": "0.1.1"
    },
    "source_files": [
        "Classes",
        "SignalStrengthIndicator/Sources/**/*.{swift}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This