Skip to content

minhye9731/MHAlert

Repository files navigation

SPM supported | platform iOS

MHAlert

  • As an exercise I recreate several simple alert using Swift.
  • Basic
  • Colored
  • Lined
  • Shadow

How they look

Basic

Simulator Screen Recording - iPhone 14 Pro - 2023-01-02 at 16 17 26

Colored

Simulator Screen Recording - iPhone 14 Pro - 2023-01-02 at 22 18 21

Lined

Simulator Screen Recording - iPhone 14 Pro - 2023-01-02 at 16 42 02

Shadow

Simulator Screen Recording - iPhone 14 Pro - 2023-01-02 at 15 55 42

Installation

Swift Package Manager

https://github.com/minhye9731/MHAlert.git

How to use them

Code

MHAlert(title: "WELCOME!", message: "Thanks for coming! \n Let's get started!", style: .colored, confirm: "OKAY", color: .systemPurple).show(in: view)

License

MHAlert is available under the MIT license. See the LICENSE file for more info.