SnackBar that responds to the keyboard and shows a message at the bottom of the screen.

Overview
  1. DGSnackBar
  2. Requirements
  3. Installation
  4. Usage
  5. Properties

DGSnackBar

SnackBar that responds to the keyboard and shows a message at the bottom of the screen.

Requirements

  • iOS 13.0+
  • Swift 5.0+
  • Xcode 10.0+

Installation

SPM

File > Add Packages > https://github.com/donggyushin/DGSnackBar/edit/main/README.md

CocoaPod

pod 'DGSnackBar', :git => 'https://github.com/donggyushin/DGSnackBar'

Usage

DGSnackBar.shared.showToast("Hi") {
    print("Add your action here")
}

Properties

Properties Description Default Type
backgroundColor Snackbar's background color .systemBackground UIColor
textColor Snackbar's text color .label UIColor
duration Snackbar's visual duration time 2.5 CGFloat
textAlignment Snackbar's text alignement .natural NSTextAlignment
alpha Snackbar's alpha 0.8 CGFloat
cornerRadius Snackbar's border radius 10 CGFloat
You might also like...
An IOS app that shows big 6 different animals from different National Parks from Africa, App available for mactosh
An IOS app that shows big 6 different animals from different National Parks from Africa, App available for mactosh

An IOS app that shows big 6 different animals from different National Parks from Africa, App available for mactosh. Africa was developed using SwiftUI

An iOS app demo to show list and detail screen of artworks.
An iOS app demo to show list and detail screen of artworks.

Artworks iOS Demo Application Architecture MVP Clean Architecture (check Known Issues) Dependency Injection Features Localization Dark mode support Ba

The movie detail screen of the TodoMovies application using Swift
The movie detail screen of the TodoMovies application using Swift

Desafio Mobile2You - TodoMovies Este desafio consiste na criação de uma réplica da tela de detalhe dos filmes do aplicativo TodoMovies utilizando Swif

SwiftUI mirroring of Instagram app Home screen
SwiftUI mirroring of Instagram app Home screen

Instasoup Is a quick code excercise, where I wanted to do fast prototaping of the Instagram like home view screen in #SwiftUI Check the source code an

A realistic reflective shimmer to SwiftUI Views that uses device orientation. Position any View relative to device orientation to appear as if through a window or reflected by the screen.
A realistic reflective shimmer to SwiftUI Views that uses device orientation. Position any View relative to device orientation to appear as if through a window or reflected by the screen.

A 3d rotation effect that uses Core Motion to allow SwiftUI views to appear projected in a specific direction and distance relative to the device in r

Food App Onboarding screen made with SwiftUI
Food App Onboarding screen made with SwiftUI

OnBoardSwiftUI-Food Food App Onboarding screen made with SwiftUI. App Details Lottie Files are used for Animations. TabView is used for Screen selecti

Red Torch is a very very (very) simple iOS app that allows you to have a red torch using your screen.

RED Torch Red Torch is a very very (very) simple iOS app that allows you to have a red torch using your screen. The App is based on storyboard, so the

AllAboutTheWord - A single screen iOS app developed using swiftUI
AllAboutTheWord - A single screen iOS app developed using swiftUI

All-About-The-Word Introduction This is a single screen iOS app developed using

Show off your GitHub contributions from your lock screen 📱
Show off your GitHub contributions from your lock screen 📱

GitHubContributionsiOS V2 NOTICE: V2 is published. It is a complete rewrite using SwiftUI and Catalyst. Source code are now hosted on the version/2.x

Releases(v1.0.5)
  • v1.0.5(Jan 23, 2022)

    What's Changed

    • [Feature] Change layout syntax by @donggyushin in https://github.com/donggyushin/DGSnackBar/pull/13
    • [Release] v1.0.5 by @donggyushin in https://github.com/donggyushin/DGSnackBar/pull/14

    Full Changelog: https://github.com/donggyushin/DGSnackBar/compare/v1.0.4...v1.0.5

    Source code(tar.gz)
    Source code(zip)
  • v1.0.4(Jan 18, 2022)

    What's Changed

    • [Feature] github actions by @donggyushin in https://github.com/donggyushin/DGSnackBar/pull/11
    • [Release] v1.0.4 by @donggyushin in https://github.com/donggyushin/DGSnackBar/pull/12

    Full Changelog: https://github.com/donggyushin/DGSnackBar/compare/v1.0.3...v1.0.4

    Source code(tar.gz)
    Source code(zip)
  • v1.0.3(Jan 14, 2022)

    What's Changed

    • [Update] Merge main branch to develop branch by @donggyushin in https://github.com/donggyushin/DGSnackBar/pull/8
    • [Feature] make DGSnackbar me available in ios12 by @donggyushin in https://github.com/donggyushin/DGSnackBar/pull/9
    • [Release] v1.0.3 by @donggyushin in https://github.com/donggyushin/DGSnackBar/pull/10

    Full Changelog: https://github.com/donggyushin/DGSnackBar/compare/v1.0.2...v1.0.3

    Source code(tar.gz)
    Source code(zip)
  • v1.0.2(Jan 8, 2022)

    What's Changed

    • [Feature] Added title label to the SnackBarView by @donggyushin in https://github.com/donggyushin/DGSnackBar/pull/5
    • [Feature] Make SnackBarView's texts color not be affected by alpha's value by @donggyushin in https://github.com/donggyushin/DGSnackBar/pull/6
    • [Release] v1.0.2 by @donggyushin in https://github.com/donggyushin/DGSnackBar/pull/7

    Full Changelog: https://github.com/donggyushin/DGSnackBar/compare/v1.0.1...v1.0.2

    Source code(tar.gz)
    Source code(zip)
  • v1.0.1(Jan 7, 2022)

    What's Changed

    • Create LICENSE by @donggyushin in https://github.com/donggyushin/DGSnackBar/pull/1
    • [Feature] Make cocoapod installation possible by @donggyushin in https://github.com/donggyushin/DGSnackBar/pull/2
    • [Feature] add action option to snackbarview by @donggyushin in https://github.com/donggyushin/DGSnackBar/pull/3
    • [Release] v1.0.1 by @donggyushin in https://github.com/donggyushin/DGSnackBar/pull/4

    New Contributors

    • @donggyushin made their first contribution in https://github.com/donggyushin/DGSnackBar/pull/1

    Full Changelog: https://github.com/donggyushin/DGSnackBar/compare/v1.0.0...v1.0.1

    Source code(tar.gz)
    Source code(zip)
Owner
donggyu
donggyu
How to add Keyboard Shortcuts to any SwiftUI App with UIKeyCommand

SwiftUI-Keyboard-Demo This tiny project was built to show how simple it is to add keyboard shortcuts (with UIKeyCommand) to any SwiftUI app. After imp

Emmanuel Crouvisier 29 Jul 13, 2022
SwiftUI iOS Widget and WatchOS app that randomly shows a word of the day with description and example.

Word Of The Day iOS Widget and WatchOS app made in SwiftUI that displays a random word of the day with description and example of usuage. Requirements

Kyle Dold 53 Nov 29, 2022
This is a repository with an app that shows a list of posts and where you can access the detail of each of them

PostsApp This is a repository with an app that shows a list of posts and where you can access the detail of each of them Dependencies You need to inst

Patricia Zambrano 1 Jun 21, 2022
This application was created as a practice and shows a simply VIPER master-detail application.

MARVEL UNIVERSE CHARACTERS This application was created as a practice and shows a simply VIPER master-detail application. Main screen shows a list of

Daniel Moraleda 0 Nov 15, 2021
Shows a Pokémon list with its image and name with SwiftUI

TelepassDigitalTestIB Description General This project aims to develop an app, for Telepass interview process, that shows a Pokémon list with its imag

null 1 Jul 5, 2022
iOS Trakt Client - Keep track of your favorite TV shows and movies on your iPhone. (Under development)

CouchTracker Keep track of your favorite movies and tv shows on your iPhone Setup for development You will need Xcode 11.2.1 Swift 5.1.2 Run the follo

Pietro Caselani 42 Apr 19, 2022
A Flutter tourism app that is backed-by Redux, shows animations, internationalization (i18n, English <=> Arabic), ClipPath, and fonts

A Flutter tourism app that is backed-by Redux, shows animations, internationalization (i18n, English <=> Arabic), ClipPath, and fonts. YouTube demo I

Abdulmomen Kadum عبدالمؤمن كاظم 277 Dec 28, 2022
iOS app that shows real-time information about subway train arrivals in Seoul, South Korea.

NextTrain iOS app that shows real-time information about subway train arrivals in Seoul, South Korea. The app was implemented using clean code and TDD

null 4 Nov 18, 2021
Weather-app - Created a simple weather app on Xcode using SwiftUI, only shows one location

weather-app Created a simple weather app on Xcode using SwiftUI, only shows one

Rahul Kadiyala 1 Feb 11, 2022
Weatherapp - An iOS app that shows the weather forecast in Toronto

☀️ Weather App An iOS app that shows the weather forecast in Toronto ?? About Th

Ana Letícia Camargos 0 Jan 29, 2022