Skip to content

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

License

Notifications You must be signed in to change notification settings

Xavjer/OfflineBar

 
 

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 4.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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 92.2%
  • Ruby 5.6%
  • Objective-C 2.2%