All Projects → mrh-is → PugNotification

mrh-is / PugNotification

Licence: MIT license
Strongly typed notifications for Swift. You might not need the pug parts.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to PugNotification

webpack-starter-pug-sass-es6-jquery
Webpack 5 starter that supports Pug, SASS, ES6 ES7 ES8 ES9 ES10 ES11 ES12, VanillaJS/jQuery... (without framework) and generate URLs without the .html extension.
Stars: ✭ 102 (+684.62%)
Mutual labels:  pug
generator-speedseed
Oriented to components, allow create/choice template, multiple configuration with easy maintenance
Stars: ✭ 13 (+0%)
Mutual labels:  pug
egg-view-pug
egg view plugin for pug.
Stars: ✭ 24 (+84.62%)
Mutual labels:  pug
code-line-daily
A line of code of the day.
Stars: ✭ 17 (+30.77%)
Mutual labels:  pug
discord-10man
Discord bot for CS:GO Scrims and Pugs
Stars: ✭ 34 (+161.54%)
Mutual labels:  pug
Bolt
⚡ is a fast grunt based, data driven, static site seed project, for rapid web development of PWA's or JAMstack projects
Stars: ✭ 30 (+130.77%)
Mutual labels:  pug
flutter-view
Create flutter view widgets using pug and sass
Stars: ✭ 128 (+884.62%)
Mutual labels:  pug
lsxc
Compile Livescript + Pug + React + SASS as a single component
Stars: ✭ 17 (+30.77%)
Mutual labels:  pug
pug-server
🐶 A simple pug server
Stars: ✭ 19 (+46.15%)
Mutual labels:  pug
aurelia-mdc-bridge
Aurelia Mdc Bridge is a collection of wrappers for Material Design Components.
Stars: ✭ 19 (+46.15%)
Mutual labels:  pug
eslint-plugin-pug
An ESLint plugin for linting inline scripts in Pug files
Stars: ✭ 17 (+30.77%)
Mutual labels:  pug
gulp-boilerplate
Gulp boilerplate
Stars: ✭ 24 (+84.62%)
Mutual labels:  pug
wololock.github.io
e.printstacktrace.blog source code
Stars: ✭ 12 (-7.69%)
Mutual labels:  pug
html-parser
Html Parser - Html to Pug, Jinja2, Blade Converter | AppSeed
Stars: ✭ 40 (+207.69%)
Mutual labels:  pug
html2pug-website
Convert HTML to Pug
Stars: ✭ 28 (+115.38%)
Mutual labels:  pug
gulp-pug-inheritance
Only build affected files when modify a Pug file.
Stars: ✭ 16 (+23.08%)
Mutual labels:  pug
pug4py
Use Pug.js within any python framework
Stars: ✭ 17 (+30.77%)
Mutual labels:  pug
vue-bootstrap-boilerplate
📦 Vue 2/3, Bootstrap 5, Vuex, Vue-Router, Sass/Scss, ESLint, Axios (switch to vue3 branch)
Stars: ✭ 86 (+561.54%)
Mutual labels:  pug
meetup-cookbook
Dicas de como organizar um meetup no PUG-PE sem estresse ❤️
Stars: ✭ 36 (+176.92%)
Mutual labels:  pug
typescript-nuxtjs-boilerplate
🍱 Nuxt.js with TypeScript and Run with docker and docker-compose 🐶🦄🔥 visit: https://typescript-nuxtjs-boilerplate.netlify.com/example
Stars: ✭ 51 (+292.31%)
Mutual labels:  pug

TypedNotification: Strongly typed notifications in Swift

Notifications are a common communication mechanism on Apple platforms, but their API is stringly-typed and uses a Dictionary to carry extra information, both of which mean that failures are totally silent. That ain't Swifty!™

TypedNotification provides a wrapper around Foundation.NotificationCenter that lets the compiler help you out. It removes the magic strings, and provides a strongly typed way to send extra data.

TypedNotification is implemented as a protocol. Just make your enums conform, and BAM you're done.

This repo

This repo contains an Xcode playground demonstrating the use of TypedNotification. Launch the playground, and poke around the Sources folder. You're free to also use the pug-themed code.

This repo also contains the presentation I gave at SLUG (video forthcoming).

Suggestions?

Make a PR! I've already improved this code several times while writing the presentation, so there's surely more ways to make it better.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].