Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SwiftAnyPic/SwiftAnyPic
Swift port of AnyPic project
https://github.com/SwiftAnyPic/SwiftAnyPic
Last synced: about 1 month ago
JSON representation
Swift port of AnyPic project
- Host: GitHub
- URL: https://github.com/SwiftAnyPic/SwiftAnyPic
- Owner: SwiftAnyPic
- License: cc0-1.0
- Created: 2015-08-26T16:27:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-14T10:39:33.000Z (over 8 years ago)
- Last Synced: 2024-05-21T01:53:51.257Z (7 months ago)
- Language: Swift
- Size: 3.17 MB
- Stars: 91
- Watchers: 13
- Forks: 49
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-swift-cn - SwiftAnyPic - Parse's Anypic app in Swift. (Demo Apps / 示例程序 / iOS)
README
[![Build Status](https://travis-ci.org/kwkhaw/SwiftAnyPic.svg?branch=master)](https://travis-ci.org/kwkhaw/SwiftAnyPic)
# SwiftAnyPic
Swift port of AnyPic project [https://github.com/ParsePlatform/Anypic](https://github.com/ParsePlatform/Anypic)## Requirements
This application requires Xcode 7 and the iOS SDK v9.0.* Developed on Xcode 7.
* Tested only with:
* Simulator iPhone 5s.
* Device iPhone 5s (iOS 9.1)
* **Note: Cocoapods version must be at least version 0.38.2**## Setup
1. Install all project dependencies from [CocoaPods](http://cocoapods.org/#install) by running this script: ```pod install```
2. Open the Xcode workspace Anypic.xcworkspace
3. Create your Anypic App on [Parse](https://parse.com/apps)
4. Copy your new app's application id and client key into ```AppDelegate.swift```:
```Parse.setApplicationId("APPLICATION_ID", clientKey: "CLIENT_KEY")```### Configuring Anypic's Facebook integration
1. Set up a Facebook app at [http://developers.facebook.com/apps](http://developers.facebook.com/apps)
2. Set up a URL scheme for fbFACEBOOK_APP_ID, where FACEBOOK_APP_ID is your Facebook app's id.
3. Add your Facebook app id to ```Info.plist``` in the ```FacebookAppID``` key.**Note: By using the original Parse application ID, client key and the Facebook App ID in the source code, the app will connect to the Parse and Facebook apps which the App Store's AnyPic app is using.**
## TODO
This project is still work in progress. There are quite a lot of things need to be fixed.* Many iOS APIs used in the objective-C version are already deprecated. They need to be replaced with the latest APIs.
* I encountered some strange crashes in Bolts. Same error as described in [https://github.com/BoltsFramework/Bolts-iOS/issues/102](https://github.com/BoltsFramework/Bolts-iOS/issues/102). I temporarily used the workaround mentioned by [https://github.com/wdcurry](https://github.com/wdcurry).
* We need @3x images for iPhone 6 Plus (so far I just tested on Simulator iPhone 5s only).
* I basically just converted the Objective-C syntax to Swift syntax for most of the code whenever possible. So there are still rooms for improvement to make the code more "Swifty".
* etc.## Misc
Please feel free to contribute! :-)