Latest 0.1.5
Homepage https://github.com/snoozelag/OfflineBar
License MIT
Platforms ios 8.0, requires ARC
Dependencies Reachability
Authors

Platform
Language
License
Twitter

In facebook or slack of ios app, offline display bar similar to the one that is displayed.

OfflineBar

Requirements

  • Swift 3.0
  • iOS 8.0+
  • Xcode 8

Installation

Cocoapods

  • Add into your Podfile.

“`:Podfile
pod "OfflineBar"


Then `$ pod install`
- Add `import OfflineBar` to the top of your files where you wish to use it.  

## Usage ##

```swift

private var offlineBar: OfflineBar!

override func viewDidLoad() {
super.viewDidLoad()

self.offlineBar = OfflineBar(addedTo: self, style: .reload) // like Slack
}

or

self.offlineBar = OfflineBar(addedTo: self, style: .close) // like Facebook
See also:

Author

Teruto Yamasaki, [email protected]

License

The MIT License (MIT)
See the LICENSE file for more info.

Latest podspec

{
    "name": "OfflineBar",
    "version": "0.1.5",
    "license": "MIT",
    "summary": "OfflineBar is a custom view that looks like the bar you see when facebook or slack iOS app is offline.",
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "3.0"
    },
    "homepage": "https://github.com/snoozelag/OfflineBar",
    "authors": {
        "Teruto Yamasaki": "[email protected]"
    },
    "social_media_url": "https://twitter.com/snoozelag",
    "source": {
        "git": "https://github.com/snoozelag/OfflineBar.git",
        "tag": "v0.1.5"
    },
    "source_files": "OfflineBar/*.swift",
    "resources": "OfflineBar/Assets/*.xcassets",
    "ios": {
        "frameworks": [
            "Foundation",
            "UIKit"
        ]
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "dependencies": {
        "Reachability": [
            "~> 3.2"
        ]
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This