PillboxView - A Pillbox informational view for iOS written in UIKit

Related tags

Layout PillboxView
Overview

Pillbox View

Pillbox View shows a small bubble, pill looking box that sides from the top of the screen. You most likely have seen this throughout iOS when the ringer state is changed, Airpods are connected and when you copy your Discord ID, among others.

Note: Discord did not use this, they were my inspiration for creating this since I could not find a dependency that did this

IMG_A7E525EB0B26-1

Features

  • Display a title message
  • Show an activity indicator to show ongoing activity IMG_439D92B0A93B-1
    • Indicate your task's success with a green checkmark IMG_9C967D1A90FD-1 or failure with a red x IMG_72EF15491E30-1
  • Animates between images and frames for clean effect

Installation

Copy the PillBoxViewManager into your file project/manager. Because I have not opened up to Cocoapods, you will have to be your own dependency manager and check for frequent updates while I am setting up dependency managers.

Quick Start

import UIKit

class ViewController: UIViewController {

    let pill = PillBoxViewManager()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        pill.show(title: "Refreshing Data", vcView: self.view)
        
        // some time later...
        DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
          pill.didFinishTask = true // this indicates the task's success
        }
    }
}

All you have to do is pass in a title message and your view controller's UIView

Conclusion

Let me know how this is and help me improve this project with ideas, suggestions.

Created and Maintained by:

Jacob Trentini

Comments
  • Version errors in `PillboxView` source code

    Version errors in `PillboxView` source code

    When working through my project, even though I have set my minimum version number in Xcode to 13, the minimum of PillboxView, it still shows errors throughout my project/workspace.

    bug 
    opened by Awesomeplayer165 2
  • Want to specify how long instant error stays

    Want to specify how long instant error stays

    An example could be having a no internet pill for the duration of there being no internet, although this may be too intruding for the user and may not comply with my UI/UX taste.

    enhancement 
    opened by Awesomeplayer165 1
  • When resizing window, pill does not stay centered

    When resizing window, pill does not stay centered

    On Mac catalyst, when resizing the window or going from landscape to portrait, the pill does not stay centered.

    This can be achieved through Layout Constraints.

    bug enhancement 
    opened by Awesomeplayer165 0
  • Update documentation and guides with picture of error task

    Update documentation and guides with picture of error task

    Like with asynchronous task PillboxView/PillView/completedTask(state:completionHandler:), include pictures and animations of revealing and dismissing.

    documentation enhancement 
    opened by Awesomeplayer165 3
  • Add `UITapGestureRecognizer` for error task

    Add `UITapGestureRecognizer` for error task

    Allow the user to click the pill and a target function would fire off - the developer would own this UITapGestureRecognizer or would allow PillboxView to create one and assign it. Either way, the tap would cover the whole PillboxView.pillView.

    opened by Awesomeplayer165 0
Releases(v0.1.6)
  • v0.1.6(Mar 12, 2022)

    What's Changed

    • Fixed issue temporarily by @Awesomeplayer165 in https://github.com/Awesomeplayer165/PillboxView/pull/23

    Full Changelog: https://github.com/Awesomeplayer165/PillboxView/compare/v0.1.4.1...v0.1.6

    Source code(tar.gz)
    Source code(zip)
  • v0.1.5(Mar 11, 2022)

    Updated for TintColor Problem

    What's Changed

    • Fixed for test by @Awesomeplayer165 in https://github.com/Awesomeplayer165/PillboxView/pull/22

    Full Changelog: https://github.com/Awesomeplayer165/PillboxView/compare/v0.1.4...v0.1.4.1

    Source code(tar.gz)
    Source code(zip)
  • v0.1.4(Mar 9, 2022)

    • Fixed Images
    • Specified How Long an Instant Error Stays #10
    • Added Completion Handlers for showing Tasks #9
    • The error task function shows an ugly or too red of an image #7
    • Version Errors in PillboxView source code #6

    Full Changelog: https://github.com/Awesomeplayer165/PillboxView/compare/0.1.1...v0.2

    Source code(tar.gz)
    Source code(zip)
  • v0.1.3(Feb 24, 2022)

    What's Changed

    • Added Package and Version Specifications by @Awesomeplayer165 in https://github.com/Awesomeplayer165/PillboxView/pull/5

    New Contributors

    • @Awesomeplayer165 made their first contribution in https://github.com/Awesomeplayer165/PillboxView/pull/5

    Full Changelog: https://github.com/Awesomeplayer165/PillboxView/compare/v0.1.2...v0.1.3

    Source code(tar.gz)
    Source code(zip)
  • v0.1.2(Feb 6, 2022)

Owner
Just an aspiring 13 year old developer. Check out my first app: Fume AQI
null
A declarative UIKit for improve layout productivity when developing an iOS application

TifoKit A declarative UIKit for improve layout productivity when developing an iOS application Requirements Min. iOS 11 Swift 5+ Installation Currentl

Tifo Audi A.P 22 Aug 9, 2022
A Set of Tools To Extend UIKit (Classic iOS Framework)

RVS_UIKit_Toolbox A set of basic UIKit tools, for Swift iOS app development. Overview This package offers a few extensions of standard UIKit classes,

The Great Rift Valley Software Company 2 Jul 8, 2022
CompositionalLayoutDSL, library to simplify the creation of UICollectionViewCompositionalLayout. It wraps the UIKit API and makes the code shorter and easier to read.

CompositionalLayoutDSL CompositionalLayoutDSL is a Swift library. It makes easier to create compositional layout for collection view. Requirements Doc

FABERNOVEL 44 Dec 27, 2022
🌵Declarative UIKit

Viewtiful Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements Installation Viewtifu

Yongjun Lee 2 Oct 28, 2021
Pocket Trainer UIKit

Pocket-Trainer-UIKit Помощник для занятий в тренажерном зале API для взаимодействия с базой данных упражнений и первоначальное приложение на Android з

vladukha 0 Nov 28, 2021
Apple provides us two ways to use UIKit views in SwiftUI

RepresentableKit Apple provides us two ways to use UIKit views in SwiftUI: UIVie

YUMEMI Inc. 43 Dec 26, 2022
Alura Viagens with UIKit

Alura Viagens UIKit UITableView Protocolo UITableViewDelegate Constraints para d

null 0 Dec 20, 2021
A simple checklist app using UIKit

UIKit Checklist App Data Persistence Icon Selector Notification Scheduling Multi

Xiao Quan 全笑 0 Dec 27, 2021
LemonadeDeclarativeUI framework contains some new functions for UIKit

LemonadeDeclarativeUI framework contains some new functions for UIKit. This library has been developing. If you want to contribute reach me!

Özgür Elmaslı 0 Jan 2, 2022
Using the UIKitChain framework, You can create a UIKit component in one line of code.

Using the UIKitChain framework, You can create a UIKit component in one line of code. Installation CocoaPods CocoaPods is a dependency manager for Coc

Malith Nadeeshan 1 Sep 1, 2022
UIKitTest - Xcode, UIKit and Swift playground

UIKit Test Just a Xcode, UIKit and Swift playground (try and learning purposes).

Ruben Rica 0 Jul 14, 2022
Swift-picker-views - inline single and multi picker views for UIKit. Without tableview! Easy and simple

swift-picker-views Inline single and multiple picker views for UIKit. No tablevi

IBRAHIM YILMAZ 2 Jan 31, 2022
The missing UIKit component. A scrollable alternative to UISegmentedControl

Requirements iOS 15.0 and higher Installation Swift Package Manager: dependencies: [ .package(url: "https://github.com/hugo-pivaral/UITabControl.git

Hugo Pivaral 11 Nov 18, 2022
UIKit Practice Project – Simple app to store names along with photos of people you've met

People UIKit Practice Project #10 – Simple app to store names along with photos of people you've met Cool Features Light & dark mode support Responsiv

foxster.mp4 2 Nov 28, 2022
The declarative approach to UIKit.

SugarKit SugarKit is a declarative approach to the UIKit framework. It allows you to Declare your views in a clean and concise way like let button = U

Roman Nabiullin 3 Oct 31, 2022
Modern-collection-view - Modern collection view for swift

Modern collection view Sample application demonstrating the use of collection vi

Nitanta Adhikari 1 Jan 24, 2022
A Code challenge I solved leveraging a lot on Composite collection view layout written in swift

AsthmApp Mobile app designed as a support aid for people with Asthma Accounts Google and Firebase [email protected] dICerytiMPSI Facebook asthmp.ap

null 0 Dec 13, 2021
A Code challenge I solved leveraging a lot on Composite collection view layout...written in swift

Space44 Code Challenge Space44 Code Challenge iOS application for Space 44 hiring process, it leverages on Image download and composite collection vie

null 0 Dec 16, 2021
Radar style view written in swift

Sonar Simple radar style view, written in Swift, pure CoreAnimation (no images). Highly adjustable. Usage Just place the UIView somewhere in your cont

Futured 126 Apr 20, 2022