Awesome Swift

1,545 阅读14分钟
原文链接: github.com

A collaborative list of awesome Swift resources, inspired by awesome-python[1] and listed on awesome-awesomeness[2].

Feel free to contribute!

Demo Apps

Some interesting demo/poc apps written in Swift.

A list of iOS Swift demo apps

Watch

A list of Apple watch enabled projects

A list of OSX Swift demo apps

  • Allkdic[39] - a status bar dictionary.
  • clock-saver[40] - a clock screen saver for osx written in Swift.
  • dshb[41] - OS X system monitor in Swift
  • Helium[42] - floating web browser
  • Panda[43] - a simple OSX menu bar application to enable/disable Yosemite dark mode.
  • RetinAssets[44] - a simple app that generates missing images from a scaled images (3x -> 2x and 1x scale)
  • Swifter[45] - http server written in Swift.

Dependency Managers

Dependency manager software for Swift.

  • carthage[46] - a new dependency manager for Swift.
  • cocoapods[47] - the most used dependency manager for Objective-C (Swift is still in porting).

Guides

An awesome list of Swift related guides.

Official Guide

Third party Guides

Style Guides

Editor Support

Support for your favorite editors.

Here you can find a list of snippets and libs for your Swift projects.

Animation

Libs to help with animation

  • DKChainableAnimationKit[69] - Easy to read and write chainable animations in Swift.
  • EasyAnimation[70] - A Swift library to take the power of UIView.animateWithDuration(_:, animations:...) to a whole new level.
  • Spring[71] - A library to simplify iOS animations in Swift.

Audio

Libs to work with audio

  • AudioPlayer[72] - A wrapper around AVPlayer with some cool features.
  • MusicKit[73] - A framework for composing and transforming music in Swift

Quick libs to get access to third party API services

Colors

Interesting snippets related to color management and utility.

Cryptography

Deal with cryptography method easily in Swift

Data Management

Core Data

No more pain with Core Data, here are some interesting libs to handle data management.

  • AERecord[91] - super awesome Core Data wrapper library for iOS written in Swift.
  • AlecrimCoreData[92] - a simple CoreData wrapper library written in Swift.
  • CoreStore[93] - simple and elegant way to handle CoreData in Swift.
  • JSQCoreDataKit[94] - A swifter Core Data stack.
  • SugarRecord[95] - an easy with to work with coredata and realm.
  • SuperRecord[96] - A small set of utilities to make working with CoreData and Swift a bit easier.
  • QueryKit[97] - an easy way to play with coredata filtering within your Swift projects.

Realm

Struggling using json data? Here are some interesting ways to handle it.

SQLite

Are you interested in storing your app data using SQLite? Here are some interesting resources.

If you prefer to manage XML data formatted entries, here are some helpful libs

Handle data formatting easily.

Events

Alternatives to NSNotificationCenter, Key-Value-Observation, or delegation.

Fonts

A collection of font related snippets.

Gesture

iBeacon

Interested in using iBeacon in your Swift project? Here some interesting resources.

Images

An interesting list of image related libs..

Keyboard

Do you want to create your own customized keyboard? Here are some interesting resources

Layout

Libs to help you with layout.

  • ManualLayout[165] - Easy to use and flexible AutoLayout alternative for iOS 8+. Supports AsyncDisplayKit.
  • SwiftBox[166] - Flexbox in Swift, using Facebook's css-layout.

Auto Layout

Bored of using storyboard? Give a try to declarative auto layout libs.

Localization

Frameworks that helps with localizing your app

Logging

Utilities for writing to and reading from the device log

  • CleanroomASL[178] — a low-level Swift API for writing to and reading from the Apple System Log daemon
  • CleanroomLogger[179] — a configurable and extensible high-level logging API that is simple, lightweight and performant
  • GEOSwift[180] - The Swift Geographic Engine, make it easier to work with geographic models and calculate intersections, overlapping, projections etc.

Network

A list of libs that allow you to decrease the amount of time spent dealing with http requests.

Quality

  • SwiftFormat[207] - Auto formatting Swift code, similar to Clang format.
  • SwiftLint[208] - An experimental tool to enforce Swift style and conventions.

Security

Sensors

Manage your device sensors in a faster and easier way

System

Testing

A collection of testing frameworks.

  • DVR[217] - A simple network testing framework for Swift.
  • OHHTTPStubs[218] - A testing library designed to stub your network requests easily.
  • Mockingjay[219] - An elegant library for stubbing HTTP requests with ease in Swift.
  • Quick[220] - Quick is a behavior-driven development framework for Swift and Objective-C.
  • Sleipnir[221] - BDD-style framework for Swift.
  • SwiftCheck[222] - A testing library that automatically generates random data for testing program properties.
  • Swiftest[223] - experimental BDD-style framework.

A collection of text projects.

  • Regex[224] - Swift wrapper class for NSRegularExpression. Includes a map() override and an operator (=~) for a more Swift-like API.
  • PySwiftyRegex[225] - Easily deal with Regex in Swift in a Pythonic way.
  • SyntaxKit[226] - TextMate-style syntax highlighting.

A collection of pre-packaged transitions & cool ui stuffs.

Utility

Some interesting utilities to help you in your projects

Video

  • Player[331] - iOS video player in Swift, simple drop in component for playing and streaming media.

Webserver

Would you like host a webserver in your device? Here you can find how to do it.

Miscellaneous Swift related projects

Tools

Tools for Swift development

Documentation

Generate documentation for Swift code