Swiftpack.co - Package - malt03/Toast

Toast

Present Toast.

Usage

enum ToastInfo: ToastInfoProvider {
    case info
    case error

    var backgroundColor: UIColor {
        switch self {
        case .info:  return .systemGreen
        case .error: return .systemRed
        }
    }
    var messageColor: UIColor { .white }
    var duration: TimeInterval { 1 }
}

Toast.shared.present(message: "message", info: ToastInfo.info)

Github

link
Stars: 0

Dependencies

Used By

Total: 0

Releases

0.0.3 - 2020-05-15 03:46:07

  • Add LINCENSE

0.0.2 - 2020-01-16 09:19:56

0.0.1 - 2020-01-16 09:09:13