UmaBasicAlertKit is a Swift UI library for iOS

Overview

UmaBasicAlertKit

UmaBasicAlertKit is a Swift UI library for iOS. This library allows user to use variations of Apple's default pop up alert with one line of code.

Simulator Screen Recording - iPhone 12 Pro - 2021-12-26 at 00 42 25 Simulator Screen Recording - iPhone 12 Pro - 2021-12-26 at 00 43 08 Simulator Screen Recording - iPhone 12 Pro - 2021-12-26 at 00 43 23 Simulator Screen Recording - iPhone 12 Pro - 2021-12-26 at 00 43 37 Simulator Screen Recording - iPhone 12 Pro - 2021-12-26 at 00 43 59 Simulator Screen Recording - iPhone 12 Pro - 2021-12-26 at 00 44 18 Simulator Screen Recording - iPhone 12 Pro - 2021-12-26 at 00 44 53

Installation

UmaBasicAlertKit can be installed with Swift Package Manager.

Swift Package Manager (Xcode 12 or higher) The preferred way of installing KatKit is via the Swift Package Manager.

In Xcode, open your project and navigate to File β†’ Swift Packages β†’ Add Package Dependency... Paste the repository URL (https://github.com/umaKim/UmaBasicAlertKit.git) and click Next. For Rules, select Version (Up to Next Major) and click Next. Click Finish.

Usage

presentUmaDefaultAlert

presentUmaDefaultAlert(title: "Title")
presentUmaDefaultAlert(title: "Tile", message: "Message")
presentUmaDefaultAlert(title: "Cancel Button Pop up", isCancelActionIncluded: true)
presentUmaDefaultAlert(title: "Pop up with completion", message: "press ok ", isCancelActionIncluded: true, actionCancelButtonTitle: "Cancel") { action in
            self.view.backgroundColor = .yellow
        }

presentUmaActionAlert

let action = UIAlertAction(title: "change background to Red", style: .default) { action in
            self.view.backgroundColor = .red
        }
presentUmaActionAlert(title: "You can add custom alert action", isCancelActionIncluded: true, with: action)
let actionR = UIAlertAction(title: "change background color to Red", style: .default) { action in
            self.view.backgroundColor = .red
        }
        let actionG = UIAlertAction(title: "change background color to Green", style: .default) { action in
            self.view.backgroundColor = .green
        }
        let actionB = UIAlertAction(title: "change background color to Blue", style: .default) { action in
            self.view.backgroundColor = .blue
        }
        let cancelAction = UIAlertAction(title: "change background color to White", style: .cancel) { action in
            self.view.backgroundColor = .white
        }
presentUmaActionAlert(
            title: "You can add custom alert action",
            with: actionR, actionG, actionB, cancelAction
        )

presentUmaBottomAlert

presentUmaBottomAlert(message: "Bottom Alert Message")

Requirements

iOS 14.0+ Swift 5+

Author

Uma Kim

You might also like...
Dates and times made easy in iOS
Dates and times made easy in iOS

DateTools DateTools was written to streamline date and time handling in iOS. Classes and concepts from other languages served as an inspiration for Da

This Control is a beautiful time-of-day picker heavily inspired by the iOS 10
This Control is a beautiful time-of-day picker heavily inspired by the iOS 10 "Bedtime" timer.

#10Clock Dark and Mysterious πŸ•Ά Light Colors 🌻 Usage The control itsself is TenClock. Add that to your view hierarchy, and constrain it to be square

A "time ago", "time since", "relative date", or "fuzzy date" category for NSDate and iOS, Objective-C, Cocoa Touch, iPhone, iPad

Migration 2014.04.12 NSDate+TimeAgo has merged with DateTools. DateTools is the parent project and Matthew York is the project head. This project is n

A TimeZonePicker UIViewController similar to the iOS Settings app. Search and select from a range of cities and countries to find your most suitable time zone.
A TimeZonePicker UIViewController similar to the iOS Settings app. Search and select from a range of cities and countries to find your most suitable time zone.

TimeZonePicker A TimeZonePicker UIViewController similar to the iOS Settings app. Search and select from a range of cities and countries to find your

Better time picker for iOS.

TimePicker Better TimePicker for iOS Requirements Swift 5.0 iOS 10.0+ Xcode 10.2+ Installation The easiest way is through CocoaPods. Simply add the de

Basic iOS app template for Integrate Branch Day.

Integrate-Branch-Day-Template Basic iOS app template for Integrate Branch Day. How to prepare for Integrate Branch Day: Install Xcode via Self Service

The goal is a simple iOS app that draws an analog clock of the current time

Qrono This is a work-in-progress. The goal is a simple iOS app that draws an analog clock of the current time (as well as displaying a digital readout

Population Clock is an iOS tool for learning about geography and demographics.
Population Clock is an iOS tool for learning about geography and demographics.

PopulationClock Population Clock is an iOS tool for learning about geography and demographics. Download app on iTunes The project uses the most recent

A clock for iOS based off of the famous fibonacci sequence
A clock for iOS based off of the famous fibonacci sequence

Fibonacc iClock Fibonacc iClock is a fibonacci clock implementation for iOS. This project is based off of Thiago SΓ‘'s implementation of Philippe ChrΓ©t

Owner
UmaKim
iOS Developer
UmaKim
Timekeeper is an easy-to-use time measurement library written in Swift, with support for iOS, tvOS, watchOS and macOS.

Timekeeper is an easy-to-use time measurement library written in Swift, with support for iOS, tvOS, watchOS and macOS. Installation Timekee

Andreas Pfurtscheller 1 Oct 18, 2021
NTP library for Swift and Objective-C. Get the true time impervious to device clock changes.

TrueTime for Swift Make sure to check out our counterpart too: TrueTime, an NTP library for Android. NTP client for Swift. Calculate the time "now" im

Instacart 530 Jan 4, 2023
Elegant NTP date library in Swift

Kronos is an NTP client library written in Swift. It supports sub-seconds precision and provides a stable monotonic clock that won't be affected by ch

Mobile Native Foundation 575 Dec 23, 2022
Building a better date/time library for Swift

Time Time is a Swift package that makes dealing with calendar values a natural and straight-forward process. Working with calendars can be extremely c

Dave DeLong 2k Dec 31, 2022
A Swift micro library for generating Sunrise and Sunset times.

Solar A Swift helper for generating Sunrise and Sunset times. Solar performs its calculations locally using an algorithm from the United States Naval

Chris Howell 493 Dec 25, 2022
SwiftUI library to display a clock. You can move the arms to change the time, change the style of the clock and customise some configurations.

SwiftClockUI Clock UI for SwiftUI This library has been tested βœ… ?? macOS Catalina 10.15.3 βœ… ?? macOS Big Sur 11.6 βœ… ?? iOS 13 βœ… ?? iOS 14 βœ… ?? iOS 15

Renaud Jenny 239 Dec 29, 2022
Customizable Calendar SwiftUI Library

SwiftUI Customizable Calendar Library

LeeProgrammer 8 Oct 11, 2022
Infini-iOS - an InfiniTime Companion App for iOS

Infini-iOS - an InfiniTime Companion App for iOS This is a proof-of-concept, barely-functional iOS application to interact with your PineTime running

null 141 Dec 24, 2022
NasaApod - iOS, Swift, MVVM, Consuming NASA Astronomy Picture of the Day API for any selected date

NasaApod iOS, Swift, MVVM, Unit Tests Consuming NASA Astronomy Picture of the Da

Vishal Singh 1 Jan 10, 2022
Date and time manager for iOS/OSX written in Swift

Tempo was designed to work both in OSX and in iOS (7.0+). Work with the time or dates can be cumbersome, iOS development. Tempo allows you to deal easly with date and time. Basics manipulations are already implemented in Tempo.

Remi ROBERT 153 Jun 3, 2021