Snitch - A handy library to access useful information about your application from the Home Screen

Overview

Snitch

Access your app's useful information from Home Screen

Table of Contents

Installation

Snitch is available through Swift Package Manager.

  • In Xcode select:

    File > Swift Packages > Add Package Dependency...
    
  • Then paste this URL:

    https://github.com/onl1ner/Snitch.git
    

Usage

Quick start

To snitch the information just call function snitch(options:):

Snitch(options: [.size, .version]).snitch()

The .size and .version options are default, so you can omit them:

Snitch().snitch()

Custom fetchers

You may also want to create your own option and show it on the Home Screen to do that you have to create your own implementation of Fetcher protocol. After doing that you could pass it as an option to the Snitch through the init(options:) initializer:

Snitch(options: [.custom(CustomFetcher())]).snitch()

Note

After calling snitch(options:) function Snitch will add Home Screen quick action menu with the information according to the passed options. You may call this function at any point in your app, but the best place to call it is in sceneWillResignActive(_:), because during the transition to a background state is a good time to update any dynamic quick actions, so the system will execute code inside the function right before user returns to the Home Screen.

Contribution

If you struggle with something feel free to open an issue. Pull requests are also appreciated.

License

Snitch is under the terms and conditions of the MIT license.

MIT License

Copyright (c) 2022 Tamerlan Satualdypov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
You might also like...
Library that makes it easy to create multiple environments within a single app. You can switch environments without deleting the application.

AppContainer Library that makes it easy to create multiple environments within a single app. You can switch environments without deleting the applicat

Application iOS de l'outil ViteMaDose

Vite Ma Dose pour iOS Présentation du projet Vite Ma Dose est un outil permettant de détecter les rendez-vous de vaccination. Cette application rapide

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

This page contains an iOS Application that uses Modelplace.AI Cloud API

Modelplace iOS App This page contains an iOS Application that uses Modelplace.AI

UndrDawg: a sport-betting application for iOS
UndrDawg: a sport-betting application for iOS

Table of contents What Is UndrDawg Our Mission Technologies Setup Features What

A simple game application using SpriteKit, physics, blend modes, radians and CGFloat
A simple game application using SpriteKit, physics, blend modes, radians and CGFloat

Pachinko A simple game application using SpriteKit, physics, blend modes, radian

Olvid-ios - Olvid client application for iOS

Olvid Olvid is a private and secure end-to-end encrypted messenger. Contrary to

Breezz: an application with which it is easy and simple to practice breathing exercises and meditation
Breezz: an application with which it is easy and simple to practice breathing exercises and meditation

breezz will help you relax Breezz is an application with which it is easy and si

An iOS application enables you explore art works provided by DeviartArt.com with high quality UX.
An iOS application enables you explore art works provided by DeviartArt.com with high quality UX.

Iris.iOS Iris is a model mobile application based on iOS. It provides basic functions allow users to explore on DeviantArt and check Daily Arts, Notif

Releases(1.0.0)
Owner
Tamerlan Satualdypov
Left brain for code, right brain for design. Self-educated iOS developer from Kazakhstan. Love open source.
Tamerlan Satualdypov
Enables you to hide ur UIViews and make them screen/screen shot proof. objective c/c++ only

SecureView Enables you to hide ur UIViews and make them screen/screen shot proof. objective c/c++ only Usage UIWindow* mainWindow; - (void) setup {

Red16 6 Oct 13, 2022
Boardy - Boardy serves as a digital bulletin board on iOS platforms built for high schoolers to share and view information from others in a convenient manner.

Boardy Boardy serves as a lightweight digital bulletin board on iOS platforms built for high schoolers to share and view information from others in a

Jacky Luong 0 Dec 31, 2021
Component containing supplementary content that are anchored to the bottom of the screen.

BottomSheetController UIKit component containing supplementary content that are anchored to the bottom of the screen. Requirements Installation Swift

Naruki Chigira 37 Nov 15, 2022
iOS simple project to create half-screen modal view controller with pan

Simple Half-screen view controller, draggable and less code (learning purpose)

Mohd Hafiz 123 Dec 17, 2022
The starter repository for the iOS tech screen!

Nearside iOS Code Screen - Starter Welcome to Nearside's Code Screen starter repository! Quickstart You'll need the following: Xcode 13.1 (13A1030d) T

Nearside 0 Dec 6, 2021
A simple User Profile screen with scrollable detail area

User Profile Screen with Scrollable Detail Area This simple user profile screen skeleton project can be used as a starting point for creating more sop

Greg Delgado III 1 Dec 26, 2021
ViewCodeApp - Login screen layout made with Swift ViewCode

Login Screen Layout an login screen layout made with swift view Concepts used Vi

Jose Leandro B. 1 Mar 28, 2022
WHAT WILL YOU LEARN? Onboarding Screen with Page Tab View, state of the app with the new App Storage

WHAT WILL YOU LEARN? Onboarding Screen with Page Tab View, state of the app with the new App Storage Onboarding or a Home screen Understand how the new App Life Cycle works Link View 
 Group Box View Disclosure View Dynamically List View with a loop

Ghullam Abbas 5 Oct 17, 2022
How to build and sign your iOS application using Azure DevOps

How to build and sign your iOS application using Azure DevOps Sample source code

null 0 Dec 29, 2021
Registre-aqui - Mobile Application that displays infrastructure issues that your city may have

Registre Aqui About | Features | Technologies | Requirements About Mobile Applic

Gian Carlo Mantuan Dala Rosa 1 Jan 4, 2022