Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.
/ OfflineBar Public archive

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

snoozelag/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 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

License

Stars

Watchers

Forks

Packages

No packages published