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

Latest commit

 

History

History
62 lines (44 loc) · 1.66 KB

README.md

File metadata and controls

62 lines (44 loc) · 1.66 KB

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.