Giter Club home page Giter Club logo

swiftanypic's Introduction

Build Status GitHub license

SwiftAnyPic

Swift port of AnyPic project 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 by running this script: pod install
  2. Open the Xcode workspace Anypic.xcworkspace
  3. Create your Anypic App on Parse
  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
  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 BoltsFramework/Bolts-ObjC#102. I temporarily used the workaround mentioned by 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! :-)

swiftanypic's People

Contributors

kwkhaw avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.