A community where genius meet
Please build with the latest Cocoapods v0.39.0 and Xcode 7.2.
Yep is a very compact and light-weight app, with the theme of "Meet Genius", helping users to find elites and beginners.
The structure is clear: we use MVC to build Yep, separating UI and logic operations. Now, let's dive into the Yep project!
Realm helps us a lot with data persistence. You can checkout the Realm/Models.swift
file to learn how we add, modify, update or delete data in Realm database.
We use Storyboard to join different view controllers together. You can take a glance at the Main.storyboard
file. Thanks to the Storyboard References feature, we break up storyboards into a set of smaller storyboards. Easy to maintain and handle .storyboard
files under source control, right?
At the same time, you should notice that some views are @IBDesignable
. You can use Interface Builder, dragg the view out and observe changes.
Without intergrating WeChat or Weibo SDK, Yep uses MonkeyKing with the native UIActivityViewController
. See Activities/WeChatActivity.swift
.
You can find all Services under Services
directory. Our services are divided into following parts:
- User-related operation service (
YepService.swift
): Sign-in, phone verification - User operation service (
YepServiceSync.swift
): Skills, messages - Network requests service (
YepNetworking.swift
): Network requests, JSON parsing/serialization - Data download service (
YepDownloader.swift
): Audio, video downloading - Feeds (
FayeService.swift
) - Cloud storage service (
YepStorageService.swift
) - Audio and video service (
YepAudioService.swift
): Based on AVFundation and AudioToolbox - Location service (
YepLocationService.swift
) - Social info service (
SocialWorkService.swift
): Get user's GitHub, Dribbble and Instagram info - Open Graph Service (
OpenGraphService.swift
): Get iBooks, App and Apple Music info
In order to improve FPS rate, we do image caching (Caches
folder).
Wants to learn more? View this slide.
If you like to join us developing Yep, fork this repo and use git flow on develop
branch to create a new branch for your developing. When you finish, send a pull request.
Please ensure each commit is minimized for code review.
MIT