Skip to content
This repository was archived by the owner on Jan 11, 2022. It is now read-only.

Repository files navigation

OfflineBar

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.
pod "OfflineBar"

Then $ pod install

  • Add import OfflineBar to the top of your files where you wish to use it.

Usage

Here is the code for this example project. .

import UIKit
import OfflineBar

class ViewController: UIViewController {

    private var offlineBar: OfflineBar!

    override func viewDidLoad() {
        super.viewDidLoad()

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

Author

Teruto Yamasaki, y.teruto@gmail.com

License

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages