Skip to content

kirillsh/Butler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Butler

Everyone has a local set of common utilities and extensions they like to use in Swift. Now I do too.

I don't want to pollute the cocoapods repo with my stuff so you can use this as such:

pod 'Butler', :git => '[email protected]:nickoneill/Butler.git'

If you're importing this as a framework, (cocoapods with use_frameworks! or carthage), you probably want to use these helpful things all over your app without adding import Butler in every file. In that case, make a defines.swift file that imports and typealiases Butler so it's accessible everywhere. It doesn't matter what you call the typealias, you don't need to reference it. This import hack brought to you by @jeffboek.

import Butler 

// this is a workaround to bring the extensions from Butler into
// the rest of the project without having to declare `import Butler` everywhere
typealias Jeeves = Butler

About

A butler does things that you could do but don't want to

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 94.0%
  • Ruby 3.1%
  • Objective-C 2.9%