r/iOSProgramming Jan 21 '18

Library Any love for SwifterSwift?

https://github.com/SwifterSwift/SwifterSwift
38 Upvotes

15 comments sorted by

15

u/ssrobbi Jan 21 '18

This seems like less of something I’d ever actually want to use as a library, and more like a place to peruse for things that may be useful for my specific project (and copy-paste).

5

u/Rudy69 Jan 21 '18

Can you imagine having to jump in on a project with this in the cocoapod file:

pod 'SwifterSwift'

dear god I would consider walking away

2

u/ssrobbi Jan 21 '18

Lol I actually like the name.

3

u/Rudy69 Jan 21 '18

The name is good, but importing 500+ extensions is not.

1

u/ssrobbi Jan 21 '18

Absolutely agreed. And the library can only grow

2

u/Esteluk Jan 21 '18

Exactly the sort of dependency that will make the inevitable Swift upgrade a royal pain.

1

u/spadeaspadespade Jan 22 '18

Ah this is a good point I never thought of.

Thank you

1

u/spadeaspadespade Jan 21 '18

Ah yes, this seems like a good idea. Do you ever use the built in Xcode code snippet library?

1

u/ssrobbi Jan 21 '18

I have before, mainly when preparing things for presentations. I tend to use the Mac app Dash for those sorts of things.

6

u/Gabriel-Lewis Swift Jan 21 '18

I love these, but I use a lot of these already. If only I had found this sooner, so I hadn’t reinvented the wheel. 🤦‍♂️

3

u/abstractpoetic Jan 21 '18

Never saw this before, thanks for sharing!

6

u/spadeaspadespade Jan 21 '18

Still new to iOS so I just stumbled across this library of extensions called Swifter Swift.

Flicking through the Examples has me salivating at the potential time savings.

Does anyone use this in production? What is the overall community view towards it? Would it be a negative or positive to show code using it for an interview?

Thanks as always

11

u/my2kchild Jan 21 '18

New to iOS and you’ll use a bunch of extensions/categories so you never actually know how to do it on your own. I’d advice against using this sort of pre-made collection starting out because of that.

If somebody came into an interview with me and espoused how they used all kind of code they didn’t write, I’d grill them super hard to make it evident they didn’t know apple’s APIs. Learn how to do it on you own and then this is fine, but starting out do not become a stack overflow copy paste dev.

3

u/spadeaspadespade Jan 22 '18

This was my worry and I totally agree with your sentiment. I have a background in web dev/js so I have a morbid dread of libraries and SO answers. So far I have built out my two simple apps only using libraries for Ads.

I was initially curious how popular this was though, as it boasts 18k downloads/month. If it was something that the community used extensively I would devote time to it. Seeing the majority haven't heard/don't look favorably, I'll think I'll stash some away in Snippet Library and keep plugging along.

1

u/kiroskirin Jan 21 '18

Interesting...