Full Code of liushuaikobe/beauties for AI

master a6564f2a1e16 cached
39 files
112.4 KB
30.8k tokens
1 requests
Download .txt
Repository: liushuaikobe/beauties
Branch: master
Commit: a6564f2a1e16
Files: 39
Total size: 112.4 KB

Directory structure:
gitextract_lxk37ing/

├── .gitignore
├── Cartfile
├── Cartfile.resolved
├── Crashlytics.framework/
│   ├── Crashlytics
│   ├── Headers/
│   │   ├── Answers.h
│   │   ├── CLSLogging.h
│   │   ├── CLSReport.h
│   │   ├── CLSStackFrame.h
│   │   └── Crashlytics.h
│   ├── Info.plist
│   ├── Modules/
│   │   └── module.modulemap
│   ├── run
│   └── submit
├── Fabric.framework/
│   ├── Fabric
│   ├── Headers/
│   │   ├── FABAttributes.h
│   │   └── Fabric.h
│   ├── Info.plist
│   ├── Modules/
│   │   └── module.modulemap
│   └── run
├── LICENSE
├── README.md
├── beauties/
│   ├── AboutViewController.swift
│   ├── AppDelegate.swift
│   ├── Base.lproj/
│   │   ├── LaunchScreen.xib
│   │   └── Main.storyboard
│   ├── BeautyCollectionViewCell.swift
│   ├── BeautyCollectionViewFooter.swift
│   ├── BeautyImageEntity.swift
│   ├── BlurView.swift
│   ├── HistoryViewController.swift
│   ├── Images.xcassets/
│   │   └── AppIcon.appiconset/
│   │       └── Contents.json
│   ├── Info.plist
│   ├── MoreViewController.swift
│   ├── TodayViewController.swift
│   └── Utils.swift
├── beautiesTests/
│   ├── Info.plist
│   └── beautiesTests.swift
└── beauty.xcodeproj/
    ├── project.pbxproj
    └── project.xcworkspace/
        └── contents.xcworkspacedata

================================================
FILE CONTENTS
================================================

================================================
FILE: .gitignore
================================================
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
# Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
Carthage/Checkouts
Carthage/Build


================================================
FILE: Cartfile
================================================
github "onevcat/Kingfisher" >= 1.6
github "Alamofire/Alamofire" ~> 2.0 


================================================
FILE: Cartfile.resolved
================================================
github "Alamofire/Alamofire" "2.0.2"
github "onevcat/Kingfisher" "1.6.0"


================================================
FILE: Crashlytics.framework/Headers/Answers.h
================================================
//
//  Answers.h
//  Crashlytics
//
//  Copyright (c) 2015 Crashlytics, Inc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Fabric/FABAttributes.h>

FAB_START_NONNULL

@interface Answers : NSObject

/**
 *  Log a Sign Up event to see users signing up for your app in real-time, understand how
 *  many users are signing up with different methods and their success rate signing up.
 *
 *  @param signUpMethodOrNil     The method by which a user logged in, e.g. Twitter or Digits.
 *  @param signUpSucceededOrNil  The ultimate success or failure of the login
 *  @param customAttributesOrNil A dictionary of custom attributes to associate with this purchase.
 */
+ (void)logSignUpWithMethod:(NSString * FAB_NULLABLE)signUpMethodOrNil
                    success:(NSNumber * FAB_NULLABLE)signUpSucceededOrNil
           customAttributes:(NSDictionary * FAB_NULLABLE)customAttributesOrNil;

/**
 *  Log an Log In event to see users logging into your app in real-time, understand how many
 *  users are logging in with different methods and their success rate logging into your app.
 *
 *  @param loginMethodOrNil      The method by which a user logged in, e.g. email, Twitter or Digits.
 *  @param loginSucceededOrNil   The ultimate success or failure of the login
 *  @param customAttributesOrNil A dictionary of custom attributes to associate with this purchase.
 */
+ (void)logLoginWithMethod:(NSString * FAB_NULLABLE)loginMethodOrNil
                   success:(NSNumber * FAB_NULLABLE)loginSucceededOrNil
          customAttributes:(NSDictionary * FAB_NULLABLE)customAttributesOrNil;

/**
 *  Log a Share event to see users sharing from your app in real-time, letting you
 *  understand what content they're sharing from the type or genre down to the specific id.
 *
 *  @param shareMethodOrNil      The method by which a user shared, e.g. email, Twitter, SMS.
 *  @param contentNameOrNil      The human readable name for this piece of content.
 *  @param contentTypeOrNil      The type of content shared.
 *  @param contentIdOrNil        The unique identifier for this piece of content. Useful for finding the top shared item.
 *  @param customAttributesOrNil A dictionary of custom attributes to associate with this event.
 */
+ (void)logShareWithMethod:(NSString * FAB_NULLABLE)shareMethodOrNil
               contentName:(NSString * FAB_NULLABLE)contentNameOrNil
               contentType:(NSString * FAB_NULLABLE)contentTypeOrNil
                 contentId:(NSString * FAB_NULLABLE)contentIdOrNil
          customAttributes:(NSDictionary * FAB_NULLABLE)customAttributesOrNil;

/**
 *  Log an Invite Event to track how users are inviting other users into
 *  your application.
 *
 *  @param inviteMethodOrNil     The method of invitation, e.g. GameCenter, Twitter, email.
 *  @param customAttributesOrNil A dictionary of custom attributes to associate with this purchase.
 */
+ (void)logInviteWithMethod:(NSString * FAB_NULLABLE)inviteMethodOrNil
           customAttributes:(NSDictionary * FAB_NULLABLE)customAttributesOrNil;

/**
 *  Log a Purchase event to see your revenue in real-time, understand how many users are making purchases, see which
 *  items are most popular, and track plenty of other important purchase-related metrics.
 *
 *  @param itemPriceOrNil         The purchased item's price.
 *  @param currencyOrNil          The ISO4217 currency code. Example: USD
 *  @param purchaseSucceededOrNil Was the purchase succesful or unsuccesful
 *  @param itemNameOrNil          The human-readable form of the item's name. Example:
 *  @param itemIdOrNil            The machine-readable, unique item identifier Example: SKU
 *  @param itemTypeOrNil          The type, or genre of the item. Example: Song
 *  @param customAttributesOrNil  A dictionary of custom attributes to associate with this purchase.
 */
+ (void)logPurchaseWithPrice:(NSDecimalNumber * FAB_NULLABLE)itemPriceOrNil
                    currency:(NSString * FAB_NULLABLE)currencyOrNil
                     success:(NSNumber * FAB_NULLABLE)purchaseSucceededOrNil
                    itemName:(NSString * FAB_NULLABLE)itemNameOrNil
                    itemType:(NSString * FAB_NULLABLE)itemTypeOrNil
                      itemId:(NSString * FAB_NULLABLE)itemIdOrNil
            customAttributes:(NSDictionary * FAB_NULLABLE)customAttributesOrNil;

/**
 *  Log a Level Start Event to track where users are in your game.
 *
 *  @param levelNameOrNil        The level name
 *  @param customAttributesOrNil A dictionary of custom attributes to associate with this level start event.
 */
+ (void)logLevelStart:(NSString * FAB_NULLABLE)levelNameOrNil
     customAttributes:(NSDictionary * FAB_NULLABLE)customAttributesOrNil;

/**
 *  Log a Level End event to track how users are completing levels in your game.
 *
 *  @param levelNameOrNil                 The name of the level completed, E.G. "1" or "Training"
 *  @param scoreOrNil                     The score the user completed the level with.
 *  @param levelCompletedSuccesfullyOrNil A boolean representing whether or not the level was completed succesfully.
 *  @param customAttributesOrNil          A dictionary of custom attributes to associate with this purchase.
 */
+ (void)logLevelEnd:(NSString * FAB_NULLABLE)levelNameOrNil
              score:(NSNumber * FAB_NULLABLE)scoreOrNil
            success:(NSNumber * FAB_NULLABLE)levelCompletedSuccesfullyOrNil
   customAttributes:(NSDictionary * FAB_NULLABLE)customAttributesOrNil;

/**
 *  Log an Add to Cart event to see users adding items to a shopping cart in real-time, understand how
 *  many users start the purchase flow, see which items are most popular, and track plenty of other important
 *  purchase-related metrics.
 *
 *  @param itemPriceOrNil         The purchased item's price.
 *  @param currencyOrNil          The ISO4217 currency code. Example: USD
 *  @param itemNameOrNil          The human-readable form of the item's name. Example:
 *  @param itemTypeOrNil          The type, or genre of the item. Example: Song
 *  @param itemIdOrNil            The machine-readable, unique item identifier Example: SKU
 *  @param customAttributesOrNil  A dictionary of custom attributes to associate with this purchase.
 */
+ (void)logAddToCartWithPrice:(NSDecimalNumber * FAB_NULLABLE)itemPriceOrNil
                     currency:(NSString * FAB_NULLABLE)currencyOrNil
                     itemName:(NSString * FAB_NULLABLE)itemNameOrNil
                     itemType:(NSString * FAB_NULLABLE)itemTypeOrNil
                       itemId:(NSString * FAB_NULLABLE)itemIdOrNil
             customAttributes:(NSDictionary * FAB_NULLABLE)customAttributesOrNil;

/**
 *  Log a Start Checkout event to see users moving through the purchase funnel in real-time, understand how many
 *  users are doing this and how much they're spending per checkout, and see how it related to other important
 *  purchase-related metrics.
 *
 *  @param totalPriceOrNil        The total price of the cart.
 *  @param currencyOrNil          The ISO4217 currency code. Example: USD
 *  @param itemCountOrNil         The number of items in the cart.
 *  @param customAttributesOrNil  A dictionary of custom attributes to associate with this purchase.
 */
+ (void)logStartCheckoutWithPrice:(NSDecimalNumber * FAB_NULLABLE)totalPriceOrNil
                         currency:(NSString * FAB_NULLABLE)currencyOrNil
                         itemCount:(NSNumber * FAB_NULLABLE)itemCountOrNil
                 customAttributes:(NSDictionary * FAB_NULLABLE)customAttributesOrNil;

/**
 *  Log a Rating event to see users rating content within your app in real-time and understand what
 *  content is most engaging, from the type or genre down to the specific id.
 *
 *  @param ratingOrNil           The integer rating given by the user.
 *  @param contentNameOrNil      The human readable name for this piece of content.
 *  @param contentTypeOrNil      The type of content shared.
 *  @param contentIdOrNil        The unique identifier for this piece of content. Useful for finding the top shared item.
 *  @param customAttributesOrNil A dictionary of custom attributes to associate with this event.
 */
+ (void)logRating:(NSNumber * FAB_NULLABLE)ratingOrNil
      contentName:(NSString * FAB_NULLABLE)contentNameOrNil
      contentType:(NSString * FAB_NULLABLE)contentTypeOrNil
        contentId:(NSString * FAB_NULLABLE)contentIdOrNil
 customAttributes:(NSDictionary * FAB_NULLABLE)customAttributesOrNil;

/**
 *  Log a Content View event to see users viewing content within your app in real-time and
 *  understand what content is most engaging, from the type or genre down to the specific id.
 *
 *  @param contentNameOrNil      The human readable name for this piece of content.
 *  @param contentTypeOrNil      The type of content shared.
 *  @param contentIdOrNil        The unique identifier for this piece of content. Useful for finding the top shared item.
 *  @param customAttributesOrNil A dictionary of custom attributes to associate with this event.
 */
+ (void)logContentViewWithName:(NSString * FAB_NULLABLE)contentNameOrNil
                   contentType:(NSString * FAB_NULLABLE)contentTypeOrNil
                     contentId:(NSString * FAB_NULLABLE)contentIdOrNil
              customAttributes:(NSDictionary * FAB_NULLABLE)customAttributesOrNil;

/**
 *  Log a Search event allows you to see users searching within your app in real-time and understand
 *  exactly what they're searching for.
 *
 *  @param queryOrNil            The user's query.
 *  @param customAttributesOrNil A dictionary of custom attributes to associate with this event.
 */
+ (void)logSearchWithQuery:(NSString * FAB_NULLABLE)queryOrNil
          customAttributes:(NSDictionary * FAB_NULLABLE)customAttributesOrNil;

/**
 *  Log a Custom Event to see user actions that are uniquely important for your app in real-time, to see how often
 *  they're performing these actions with breakdowns by different categories you add. Use a human-readable name for
 *  the name of the event, since this is how the event will appear in Answers.
 *
 *  @param eventName             The human-readable name for the event.
 *  @param customAttributesOrNil A dictionary of custom attributes to associate with this purchase. Attribute keys
 *                               must be <code>NSString</code> and and values must be <code>NSNumber</code> or <code>NSString</code>.
 *  @discussion                  How we treat <code>NSNumbers</code>:
 *                               We will provide information about the distribution of values over time.
 *
 *                               How we treat <code>NSStrings</code>:
 *                               NSStrings are used as categorical data, allowing comparison across different category values.
 *                               Strings are limited to a maximum length of 100 characters, attributes over this length will be
 *                               truncated.
 *
 *                               When tracking the Tweet views to better understand user engagement, sending the tweet's length
 *                               and the type of media present in the tweet allows you to track how tweet length and the type of media influence
 *                               engagement.
 */
+ (void)logCustomEventWithName:(NSString *)eventName
              customAttributes:(NSDictionary * FAB_NULLABLE)customAttributesOrNil;

@end

FAB_END_NONNULL


================================================
FILE: Crashlytics.framework/Headers/CLSLogging.h
================================================
//
//  CLSLogging.h
//  Crashlytics
//
//  Copyright (c) 2015 Crashlytics, Inc. All rights reserved.
//
#ifdef __OBJC__
#import <Fabric/FABAttributes.h>
#import <Foundation/Foundation.h>

FAB_START_NONNULL
#endif



/**
 *
 * The CLS_LOG macro provides as easy way to gather more information in your log messages that are
 * sent with your crash data. CLS_LOG prepends your custom log message with the function name and
 * line number where the macro was used. If your app was built with the DEBUG preprocessor macro
 * defined CLS_LOG uses the CLSNSLog function which forwards your log message to NSLog and CLSLog.
 * If the DEBUG preprocessor macro is not defined CLS_LOG uses CLSLog only.
 *
 * Example output:
 * -[AppDelegate login:] line 134 $ login start
 *
 * If you would like to change this macro, create a new header file, unset our define and then define
 * your own version. Make sure this new header file is imported after the Crashlytics header file.
 *
 * #undef CLS_LOG
 * #define CLS_LOG(__FORMAT__, ...) CLSNSLog...
 *
 **/
#ifdef __OBJC__
#ifdef DEBUG
#define CLS_LOG(__FORMAT__, ...) CLSNSLog((@"%s line %d $ " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#else
#define CLS_LOG(__FORMAT__, ...) CLSLog((@"%s line %d $ " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#endif
#endif

/**
 *
 * Add logging that will be sent with your crash data. This logging will not show up in the system.log
 * and will only be visible in your Crashlytics dashboard.
 *
 **/

#ifdef __OBJC__
OBJC_EXTERN void CLSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2);
OBJC_EXTERN void CLSLogv(NSString *format, va_list ap) NS_FORMAT_FUNCTION(1,0);

/**
 *
 * Add logging that will be sent with your crash data. This logging will show up in the system.log
 * and your Crashlytics dashboard. It is not recommended for Release builds.
 *
 **/
OBJC_EXTERN void CLSNSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2);
OBJC_EXTERN void CLSNSLogv(NSString *format, va_list ap) NS_FORMAT_FUNCTION(1,0);


FAB_END_NONNULL
#endif


================================================
FILE: Crashlytics.framework/Headers/CLSReport.h
================================================
//
//  CLSReport.h
//  Crashlytics
//
//  Copyright (c) 2015 Crashlytics, Inc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Fabric/FABAttributes.h>

FAB_START_NONNULL

/**
 * The CLSCrashReport protocol is deprecated. See the CLSReport class and the CrashyticsDelegate changes for details.
 **/
@protocol CLSCrashReport <NSObject>

@property (nonatomic, copy, readonly) NSString *identifier;
@property (nonatomic, copy, readonly) NSDictionary *customKeys;
@property (nonatomic, copy, readonly) NSString *bundleVersion;
@property (nonatomic, copy, readonly) NSString *bundleShortVersionString;
@property (nonatomic, copy, readonly) NSDate *crashedOnDate;
@property (nonatomic, copy, readonly) NSString *OSVersion;
@property (nonatomic, copy, readonly) NSString *OSBuildVersion;

@end

/**
 * The CLSReport exposes an interface to the phsyical report that Crashlytics has created. You can
 * use this class to get information about the event, and can also set some values after the
 * event has occured.
 **/
@interface CLSReport : NSObject <CLSCrashReport>

- (instancetype)init NS_UNAVAILABLE;

/**
 * Returns the session identifier for the report.
 **/
@property (nonatomic, copy, readonly) NSString *identifier;

/**
 * Returns the custom key value data for the report.
 **/
@property (nonatomic, copy, readonly) NSDictionary *customKeys;

/**
 * Returns the CFBundleVersion of the application that generated the report.
 **/
@property (nonatomic, copy, readonly) NSString *bundleVersion;

/**
 * Returns the CFBundleShortVersionString of the application that generated the report.
 **/
@property (nonatomic, copy, readonly) NSString *bundleShortVersionString;

/**
 * Returns the date that the report was created.
 **/
@property (nonatomic, copy, readonly) NSDate *dateCreated;

/**
 * Returns the os version that the application crashed on.
 **/
@property (nonatomic, copy, readonly) NSString *OSVersion;

/**
 * Returns the os build version that the application crashed on.
 **/
@property (nonatomic, copy, readonly) NSString *OSBuildVersion;

/**
 * Returns YES if the report contains any crash information. If the report
 * contains only NSErrors, this will return NO.
 **/
@property (nonatomic, assign, readonly) BOOL isCrash;

/**
 * You can use this method to set, after the event, additional custom keys. The rules
 * and semantics for this method are the same as those documented in Crashlytics.h. Be aware
 * that the maximum size and count of custom keys is still enforced, and you can overwrite keys
 * and/or cause excess keys to be deleted by using this method.
 **/
- (void)setObjectValue:(id FAB_NULLABLE)value forKey:(NSString *)key;

/**
 * Record an application-specific user identifier. See Crashlytics.h for details.
 **/
@property (nonatomic, copy) NSString * FAB_NULLABLE userIdentifier;

/**
 * Record a user name. See Crashlytics.h for details.
 **/
@property (nonatomic, copy) NSString * FAB_NULLABLE userName;

/**
 * Record a user email. See Crashlytics.h for details.
 **/
@property (nonatomic, copy) NSString * FAB_NULLABLE userEmail;

@end

FAB_END_NONNULL


================================================
FILE: Crashlytics.framework/Headers/CLSStackFrame.h
================================================
//
//  CLSStackFrame.h
//  Crashlytics
//
//  Copyright 2015 Crashlytics, Inc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Fabric/FABAttributes.h>

FAB_START_NONNULL

/**
 *
 * This class is used in conjunction with -[Crashlytics recordCustomExceptionName:reason:frameArray:] to
 * record information about non-ObjC/C++ exceptions. All information included here will be displayed 
 * in the Crashlytics UI, and can influence crash grouping. Be particularly careful with the use of the 
 * address property. If set, Crashlytics will attempt symbolication and could overwrite other properities 
 * in the process.
 *
 **/
@interface CLSStackFrame : NSObject

+ (instancetype)stackFrame;
+ (instancetype)stackFrameWithAddress:(NSUInteger)address;
+ (instancetype)stackFrameWithSymbol:(NSString *)symbol;

@property (nonatomic, copy)   NSString * FAB_NULLABLE symbol;
@property (nonatomic, copy)   NSString * FAB_NULLABLE library;
@property (nonatomic, copy)   NSString * FAB_NULLABLE fileName;
@property (nonatomic, assign) uint32_t lineNumber;
@property (nonatomic, assign) uint64_t offset;
@property (nonatomic, assign) uint64_t address;

@end

FAB_END_NONNULL


================================================
FILE: Crashlytics.framework/Headers/Crashlytics.h
================================================
//
//  Crashlytics.h
//  Crashlytics
//
//  Copyright (c) 2015 Crashlytics, Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <Fabric/FABAttributes.h>
#import "CLSLogging.h"
#import "CLSReport.h"
#import "CLSStackFrame.h"
#import "Answers.h"

#define CLS_DEPRECATED(x)  __attribute__ ((deprecated(x)))

FAB_START_NONNULL

@protocol CrashlyticsDelegate;

/**
 *  Crashlytics. Handles configuration and initialization of Crashlytics.
 */
@interface Crashlytics : NSObject

@property (nonatomic, readonly, copy) NSString *apiKey;
@property (nonatomic, readonly, copy) NSString *version;
@property (nonatomic, assign)         BOOL      debugMode;

/**
 *
 * The delegate can be used to influence decisions on reporting and behavior, as well as reacting
 * to previous crashes.
 *
 * Make certain that the delegate is setup before starting Crashlytics with startWithAPIKey:... or
 * via +[Fabric with:...]. Failure to do will result in missing any delegate callbacks that occur
 * synchronously during start.
 *
 **/
@property (nonatomic, assign)         id <CrashlyticsDelegate> FAB_NULLABLE delegate;

/**
 *  The recommended way to install Crashlytics into your application is to place a call to +startWithAPIKey: 
 *  in your -application:didFinishLaunchingWithOptions: or -applicationDidFinishLaunching:
 *  method.
 *
 *  Note: Starting with 3.0, the submission process has been significantly improved. The delay parameter
 *  is no longer required to throttle submissions on launch, performance will be great without it.
 *
 *  @param apiKey The Crashlytics API Key for this app
 *
 *  @return The singleton Crashlytics instance
 */
+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey;
+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey afterDelay:(NSTimeInterval)delay CLS_DEPRECATED("Crashlytics no longer needs or uses the delay parameter.  Please use +startWithAPIKey: instead.");

/**
 *  If you need the functionality provided by the CrashlyticsDelegate protocol, you can use
 *  these convenience methods to activate the framework and set the delegate in one call.
 *  
 *  @param apiKey   The Crashlytics API Key for this app
 *  @param delegate A delegate object which conforms to CrashlyticsDelegate.
 *
 *  @return The singleton Crashlytics instance
 */
+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey delegate:(id<CrashlyticsDelegate> FAB_NULLABLE)delegate;
+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey delegate:(id<CrashlyticsDelegate> FAB_NULLABLE)delegate afterDelay:(NSTimeInterval)delay CLS_DEPRECATED("Crashlytics no longer needs or uses the delay parameter.  Please use +startWithAPIKey:delegate: instead.");

/**
 *  Access the singleton Crashlytics instance.
 *
 *  @return The singleton Crashlytics instance
 */
+ (Crashlytics *)sharedInstance;

/**
 *  The easiest way to cause a crash - great for testing!
 */
- (void)crash;

/**
 *  The easiest way to cause a crash with an exception - great for testing.
 */
- (void)throwException;

/**
 *  Specify a user identifier which will be visible in the Crashlytics UI.
 *
 *  Many of our customers have requested the ability to tie crashes to specific end-users of their
 *  application in order to facilitate responses to support requests or permit the ability to reach
 *  out for more information. We allow you to specify up to three separate values for display within
 *  the Crashlytics UI - but please be mindful of your end-user's privacy.
 *
 *  We recommend specifying a user identifier - an arbitrary string that ties an end-user to a record
 *  in your system. This could be a database id, hash, or other value that is meaningless to a
 *  third-party observer but can be indexed and queried by you.
 *
 *  Optionally, you may also specify the end-user's name or username, as well as email address if you
 *  do not have a system that works well with obscured identifiers.
 *
 *  Pursuant to our EULA, this data is transferred securely throughout our system and we will not
 *  disseminate end-user data unless required to by law. That said, if you choose to provide end-user
 *  contact information, we strongly recommend that you disclose this in your application's privacy
 *  policy. Data privacy is of our utmost concern.
 *
 *  @param identifier An arbitrary user identifier string which ties an end-user to a record in your system.
 */
- (void)setUserIdentifier:(NSString * FAB_NULLABLE)identifier;

/**
 *  Specify a user name which will be visible in the Crashlytics UI.
 *  Please be mindful of your end-user's privacy and see if setUserIdentifier: can fulfil your needs.
 *  @see setUserIdentifier:
 *
 *  @param name An end user's name.
 */
- (void)setUserName:(NSString * FAB_NULLABLE)name;

/**
 *  Specify a user email which will be visible in the Crashlytics UI.
 *  Please be mindful of your end-user's privacy and see if setUserIdentifier: can fulfil your needs.
 *  
 *  @see setUserIdentifier:
 *
 *  @param email An end user's email address.
 */
- (void)setUserEmail:(NSString * FAB_NULLABLE)email;

+ (void)setUserIdentifier:(NSString * FAB_NULLABLE)identifier CLS_DEPRECATED("Please access this method via +sharedInstance");
+ (void)setUserName:(NSString * FAB_NULLABLE)name CLS_DEPRECATED("Please access this method via +sharedInstance");
+ (void)setUserEmail:(NSString * FAB_NULLABLE)email CLS_DEPRECATED("Please access this method via +sharedInstance");

/**
 *  Set a value for a for a key to be associated with your crash data which will be visible in the Crashlytics UI.
 *  When setting an object value, the object is converted to a string. This is typically done by calling 
 *  -[NSObject description].
 *
 *  @param value The object to be associated with the key
 *  @param key   The key with which to associate the value
 */
- (void)setObjectValue:(id FAB_NULLABLE)value forKey:(NSString *)key;

/**
 *  Set an int value for a key to be associated with your crash data which will be visible in the Crashlytics UI.
 *
 *  @param value The integer value to be set
 *  @param key   The key with which to associate the value
 */
- (void)setIntValue:(int)value forKey:(NSString *)key;

/**
 *  Set an BOOL value for a key to be associated with your crash data which will be visible in the Crashlytics UI.
 *
 *  @param value The BOOL value to be set
 *  @param key   The key with which to associate the value
 */
- (void)setBoolValue:(BOOL)value forKey:(NSString *)key;

/**
 *  Set an float value for a key to be associated with your crash data which will be visible in the Crashlytics UI.
 *
 *  @param value The float value to be set
 *  @param key   The key with which to associate the value
 */
- (void)setFloatValue:(float)value forKey:(NSString *)key;

+ (void)setObjectValue:(id FAB_NULLABLE)value forKey:(NSString *)key CLS_DEPRECATED("Please access this method via +sharedInstance");
+ (void)setIntValue:(int)value forKey:(NSString *)key CLS_DEPRECATED("Please access this method via +sharedInstance");
+ (void)setBoolValue:(BOOL)value forKey:(NSString *)key CLS_DEPRECATED("Please access this method via +sharedInstance");
+ (void)setFloatValue:(float)value forKey:(NSString *)key CLS_DEPRECATED("Please access this method via +sharedInstance");

/**
 *  This method can be used to record a single exception structure in a report. This is particularly useful
 *  when your code interacts with non-native languages like Lua, C#, or Javascript. This call can be
 *  expensive and should only be used shortly before process termination. This API is not intended be to used
 *  to log NSException objects. All safely-reportable NSExceptions are automatically captured by
 *  Crashlytics.
 *
 *  @param name       The name of the custom exception
 *  @param reason     The reason this exception occured
 *  @param frameArray An array of CLSStackFrame objects
 */
- (void)recordCustomExceptionName:(NSString *)name reason:(NSString * FAB_NULLABLE)reason frameArray:(NSArray *)frameArray;




- (void)logEvent:(NSString *)eventName CLS_DEPRECATED("Please refer to Answers +logCustomEventWithName:");
- (void)logEvent:(NSString *)eventName attributes:(NSDictionary * FAB_NULLABLE) attributes CLS_DEPRECATED("Please refer to Answers +logCustomEventWithName:");
+ (void)logEvent:(NSString *)eventName CLS_DEPRECATED("Please refer to Answers +logCustomEventWithName:");
+ (void)logEvent:(NSString *)eventName attributes:(NSDictionary * FAB_NULLABLE) attributes CLS_DEPRECATED("Please refer to Answers +logCustomEventWithName:");
@end

/**
 *
 * The CrashlyticsDelegate protocol provides a mechanism for your application to take
 * action on events that occur in the Crashlytics crash reporting system.  You can make
 * use of these calls by assigning an object to the Crashlytics' delegate property directly,
 * or through the convenience +startWithAPIKey:delegate: method.
 *
 */
@protocol CrashlyticsDelegate <NSObject>
@optional


- (void)crashlyticsDidDetectCrashDuringPreviousExecution:(Crashlytics *)crashlytics CLS_DEPRECATED("Please refer to -crashlyticsDidDetectReportForLastExecution:");
- (void)crashlytics:(Crashlytics *)crashlytics didDetectCrashDuringPreviousExecution:(id <CLSCrashReport>)crash CLS_DEPRECATED("Please refer to -crashlyticsDidDetectReportForLastExecution:");

/**
 *
 *  Called when a Crashlytics instance has determined that the last execution of the
 *  application ended in a crash.  This is called synchronously on Crashlytics
 *  initialization. Your delegate must invoke the completionHandler, but does not need to do so
 *  synchronously, or even on the main thread. Invoking completionHandler with NO will cause the
 *  detected report to be deleted and not submitted to Crashlytics. This is useful for
 *  implementing permission prompts, or other more-complex forms of logic around submitting crashes.
 *
 *  @warning Failure to invoke the completionHandler will prevent submissions from being reported. Watch out.
 *
 *  @warning Just implementing this delegate method will disable all forms of synchronous report submission. This can
 *           impact the reliability of reporting crashes very early in application launch.
 *
 *  @param report            The CLSReport object representing the last detected crash
 *  @param completionHandler The completion handler to call when your logic has completed.
 *
 */
- (void)crashlyticsDidDetectReportForLastExecution:(CLSReport *)report completionHandler:(void (^)(BOOL submit))completionHandler;

/**
 *  If your app is running on an OS that supports it (OS X 10.9+, iOS 7.0+), Crashlytics will submit
 *  most reports using out-of-process background networking operations. This results in a significant
 *  improvement in reliability of reporting, as well as power and performance wins for your users.
 *  If you don't want this functionality, you can disable by returning NO from this method.
 *
 *  @warning Background submission is not supported for extensions on iOS or OS X.
 *
 *  @param crashlytics The Crashlytics singleton instance
 *
 *  @return Return NO if you don't want out-of-process background network operations.
 *
 */
- (BOOL)crashlyticsCanUseBackgroundSessions:(Crashlytics *)crashlytics;

@end

/**
 *  `CrashlyticsKit` can be used as a parameter to `[Fabric with:@[CrashlyticsKit]];` in Objective-C. In Swift, use Crashlytics.sharedInstance()
 */
#define CrashlyticsKit [Crashlytics sharedInstance]

FAB_END_NONNULL


================================================
FILE: Crashlytics.framework/Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>BuildMachineOSBuild</key>
	<string>14E46</string>
	<key>CFBundleDevelopmentRegion</key>
	<string>English</string>
	<key>CFBundleExecutable</key>
	<string>Crashlytics</string>
	<key>CFBundleIdentifier</key>
	<string>com.twitter.crashlytics.ios</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>Crashlytics</string>
	<key>CFBundlePackageType</key>
	<string>FMWK</string>
	<key>CFBundleShortVersionString</key>
	<string>3.1.0</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleSupportedPlatforms</key>
	<array>
		<string>iPhoneOS</string>
	</array>
	<key>CFBundleVersion</key>
	<string>65</string>
	<key>DTCompiler</key>
	<string>com.apple.compilers.llvm.clang.1_0</string>
	<key>DTPlatformBuild</key>
	<string>12H141</string>
	<key>DTPlatformName</key>
	<string>iphoneos</string>
	<key>DTPlatformVersion</key>
	<string>8.4</string>
	<key>DTSDKBuild</key>
	<string>12H141</string>
	<key>DTSDKName</key>
	<string>iphoneos8.4</string>
	<key>DTXcode</key>
	<string>0640</string>
	<key>DTXcodeBuild</key>
	<string>6E35b</string>
	<key>MinimumOSVersion</key>
	<string>5.0</string>
	<key>NSHumanReadableCopyright</key>
	<string>Copyright © 2015 Crashlytics, Inc. All rights reserved.</string>
	<key>UIDeviceFamily</key>
	<array>
		<integer>1</integer>
		<integer>2</integer>
	</array>
</dict>
</plist>


================================================
FILE: Crashlytics.framework/Modules/module.modulemap
================================================
framework module Crashlytics {
    header "Crashlytics.h"
    header "Answers.h"
    header "CLSLogging.h"
    header "CLSReport.h"
    header "CLSStackFrame.h"

    export *

    link "z"
    link "c++"
}


================================================
FILE: Fabric.framework/Headers/FABAttributes.h
================================================
//
//  FABAttributes.h
//  Fabric
//
//  Created by Priyanka Joshi on 3/3/15.
//  Copyright (c) 2015 Twitter. All rights reserved.
//

#pragma once

#define FAB_UNAVAILABLE(x) __attribute__((unavailable(x)))

#if __has_feature(nullability)
#define FAB_NONNULL __nonnull
#define FAB_NULLABLE __nullable
#define FAB_START_NONNULL _Pragma("clang assume_nonnull begin")
#define FAB_END_NONNULL _Pragma("clang assume_nonnull end")
#else
#define FAB_NONNULL
#define FAB_NULLABLE
#define FAB_START_NONNULL
#define FAB_END_NONNULL
#endif


================================================
FILE: Fabric.framework/Headers/Fabric.h
================================================
//
//  Fabric.h
//
//  Copyright (c) 2014 Twitter. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FABAttributes.h"

FAB_START_NONNULL

/**
 *  Fabric Base. Coordinates configuration and starts all provided kits.
 */
@interface Fabric : NSObject

/**
 *  Initialize Fabric and all provided kits. Call this method within your App Delegate's
 *  `application:didFinishLaunchingWithOptions:` and provide the kits you wish to use.
 *
 *  For example, in Objective-C:
 *
 *      `[Fabric with:@[TwitterKit, CrashlyticsKit, MoPubKit]];`
 *
 *  Swift:
 *
 *      `Fabric.with([Twitter(), Crashlytics(), MoPub()])`
 *  
 *  Only the first call to this method is honored. Subsequent calls are no-ops.
 *
 *  @param kits An array of kit instances. Kits may provide a macro such as CrashlyticsKit which can be passed in as array elements in objective-c.
 *
 *  @return Returns the shared Fabric instance. In most cases this can be ignored.
 */
+ (instancetype)with:(NSArray *)kits;

/**
 *  Returns the Fabric singleton object.
 */
+ (instancetype)sharedSDK;

/**
 *  This BOOL enables or disables debug logging, such as kit version information. The default value is NO.
 */
@property (nonatomic, assign) BOOL debug;

/**
 *  Unavailable. Use `+sharedSDK` to retrieve the shared Fabric instance.
 */
- (id)init FAB_UNAVAILABLE("Use +sharedSDK to retrieve the shared Fabric instance.");

/**
 *  Returns Fabrics's instance of the specified kit.
 *
 *  @param klass The class of the kit.
 *
 *  @return The kit instance of class klass which was provided to with: or nil.
 */
- (id FAB_NULLABLE)kitForClass:(Class)klass;

/**
 *  Returns a dictionary containing the kit configuration info for the provided kit.
 *  The configuration information is parsed from the application's Info.plist. This
 *  method is primarily intended to be used by kits to retrieve their configuration.
 *
 *  @param kitInstance An instance of the kit whose configuration should be returned.
 *
 *  @return A dictionary containing kit specific configuration information or nil if none exists.
 */
- (NSDictionary * FAB_NULLABLE)configurationDictionaryForKit:(id)kitInstance;

@end

FAB_END_NONNULL



================================================
FILE: Fabric.framework/Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>BuildMachineOSBuild</key>
	<string>13F34</string>
	<key>CFBundleDevelopmentRegion</key>
	<string>en</string>
	<key>CFBundleExecutable</key>
	<string>Fabric</string>
	<key>CFBundleIdentifier</key>
	<string>io.fabric.sdk.ios</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>Fabric</string>
	<key>CFBundlePackageType</key>
	<string>FMWK</string>
	<key>CFBundleShortVersionString</key>
	<string>1.2.8</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleSupportedPlatforms</key>
	<array>
		<string>iPhoneOS</string>
	</array>
	<key>CFBundleVersion</key>
	<string>20</string>
	<key>DTCompiler</key>
	<string>com.apple.compilers.llvm.clang.1_0</string>
	<key>DTPlatformBuild</key>
	<string>12B411</string>
	<key>DTPlatformName</key>
	<string>iphoneos</string>
	<key>DTPlatformVersion</key>
	<string>8.1</string>
	<key>DTSDKBuild</key>
	<string>12B411</string>
	<key>DTSDKName</key>
	<string>iphoneos8.1</string>
	<key>DTXcode</key>
	<string>0611</string>
	<key>DTXcodeBuild</key>
	<string>6A2008a</string>
	<key>MinimumOSVersion</key>
	<string>5.0</string>
	<key>NSHumanReadableCopyright</key>
	<string>Copyright © 2015 Twitter. All rights reserved.</string>
	<key>UIDeviceFamily</key>
	<array>
		<integer>1</integer>
		<integer>2</integer>
	</array>
</dict>
</plist>


================================================
FILE: Fabric.framework/Modules/module.modulemap
================================================
framework module Fabric {
    umbrella header "Fabric.h"

    export *
    module * { export * }
}

================================================
FILE: LICENSE
================================================
The MIT License (MIT)

Copyright (c) 2015 Shuai Liu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



================================================
FILE: README.md
================================================
# ![logo](./demos/logo.png)

It's a project made while I'm learning Swift. The data is fetched from [http://gank.io/](http://gank.io/) by [@daimajia](https://github.com/daimajia).

API of gank.io: [http://gank.io/api](http://gank.io/api).

~~I get the image by parsing the HTML, but you can use its [API](http://gank.io/api) now.~~

### Demo

![demo](./demos/demo.png)

### Keywords

* [Carthage](https://github.com/Carthage/Carthage)
* [Alamofire](https://github.com/Alamofire/Alamofire)
* [Kingfisher](https://github.com/onevcat/Kingfisher)
* ~~[CHTCollectionViewWaterfallLayout](https://github.com/chiahsien/CHTCollectionViewWaterfallLayout)~~
* `UIBlurEffect`
* Sketch

### License

The MIT (buy me coffee by alipay) License (MIT)

![donate](http://7xjdjy.com1.z0.glb.clouddn.com/donate.png)


================================================
FILE: beauties/AboutViewController.swift
================================================
//
//  AboutViewController.swift
//  beauties
//
//  Created by Shuai Liu on 15/8/6.
//  Copyright (c) 2015年 Shuai Liu. All rights reserved.
//

import Foundation
import UIKit

class AboutViewController: UIViewController {
    @IBOutlet weak var linkLabel: UILabel!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        linkLabel.textColor = UIColor(red: 65.0 / 255.0, green: 131.0 / 255.0, blue: 196.0 / 255.0, alpha: 1)
        
        let tapGesture = UITapGestureRecognizer(target: self, action: "gotoURL")
        linkLabel.addGestureRecognizer(tapGesture)
    }
    
    func gotoURL() {
        let url = NSURL(string: linkLabel.text!)!
        UIApplication.sharedApplication().openURL(url)
    }
}

================================================
FILE: beauties/AppDelegate.swift
================================================
//
//  AppDelegate.swift
//  beauties
//
//  Created by Shuai Liu on 15/6/27.
//  Copyright (c) 2015年 Shuai Liu. All rights reserved.
//

import UIKit
import Fabric
import Crashlytics

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        // Override point for customization after application launch.
        Fabric.with([Crashlytics()])
        UITabBar.appearance().tintColor = ThemeColor
        UINavigationBar.appearance().tintColor = ThemeColor
        UITableViewCell.appearance().tintColor = ThemeColor
        return true
    }

    func applicationWillResignActive(application: UIApplication) {
        // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
        // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
    }

    func applicationDidEnterBackground(application: UIApplication) {
        // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
        // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
    }

    func applicationWillEnterForeground(application: UIApplication) {
        // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
    }

    func applicationDidBecomeActive(application: UIApplication) {
        // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
    }

    func applicationWillTerminate(application: UIApplication) {
        // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
    }


}



================================================
FILE: beauties/Base.lproj/LaunchScreen.xib
================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14E46" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
    <dependencies>
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/>
    </dependencies>
    <objects>
        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
        <view contentMode="scaleToFill" id="iN0-l3-epB">
            <rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
            <subviews>
                <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="  Copyright (c) 2015 liushuaikobe. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
                    <rect key="frame" x="20" y="439" width="441" height="20.5"/>
                    <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="17"/>
                    <color key="textColor" red="0.80000000000000004" green="0.80000000000000004" blue="0.80000000000000004" alpha="1" colorSpace="calibratedRGB"/>
                    <nil key="highlightedColor"/>
                </label>
                <imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="logo.png" translatesAutoresizingMaskIntoConstraints="NO" id="8t0-OE-jVV">
                    <rect key="frame" x="150" y="157" width="180" height="165"/>
                </imageView>
            </subviews>
            <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
            <constraints>
                <constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
                <constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
                <constraint firstAttribute="centerX" secondItem="8t0-OE-jVV" secondAttribute="centerX" id="OdC-fi-Ifc"/>
                <constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
                <constraint firstAttribute="centerY" secondItem="8t0-OE-jVV" secondAttribute="centerY" id="yiN-ej-bHb"/>
            </constraints>
            <nil key="simulatedStatusBarMetrics"/>
            <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
            <point key="canvasLocation" x="548" y="455"/>
        </view>
    </objects>
    <resources>
        <image name="logo.png" width="180" height="165"/>
    </resources>
</document>


================================================
FILE: beauties/Base.lproj/Main.storyboard
================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="7706" systemVersion="14E46" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="f3g-TE-CM5">
    <dependencies>
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/>
        <capability name="Constraints to layout margins" minToolsVersion="6.0"/>
    </dependencies>
    <scenes>
        <!--history-->
        <scene sceneID="Guh-Yq-BQM">
            <objects>
                <viewController id="CE2-oN-1xj" userLabel="history" customClass="HistoryViewController" customModule="beauty" customModuleProvider="target" sceneMemberID="viewController">
                    <layoutGuides>
                        <viewControllerLayoutGuide type="top" id="iac-hu-QWX"/>
                        <viewControllerLayoutGuide type="bottom" id="t4e-U6-Oqc"/>
                    </layoutGuides>
                    <view key="view" contentMode="scaleToFill" id="CRR-3b-xCd">
                        <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                        <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
                    </view>
                    <tabBarItem key="tabBarItem" title="历史" image="history.png" id="qCa-Hh-075"/>
                </viewController>
                <placeholder placeholderIdentifier="IBFirstResponder" id="9l2-27-NFO" userLabel="First Responder" sceneMemberID="firstResponder"/>
            </objects>
            <point key="canvasLocation" x="379" y="890"/>
        </scene>
        <!--today-->
        <scene sceneID="KQF-6M-nYb">
            <objects>
                <viewController id="6RE-QU-fnl" userLabel="today" customClass="TodayViewController" customModule="beauty" customModuleProvider="target" sceneMemberID="viewController">
                    <layoutGuides>
                        <viewControllerLayoutGuide type="top" id="NSn-vb-60y"/>
                        <viewControllerLayoutGuide type="bottom" id="LyU-qX-8m3"/>
                    </layoutGuides>
                    <view key="view" contentMode="scaleToFill" id="Mge-rp-nrR">
                        <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                        <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
                    </view>
                    <tabBarItem key="tabBarItem" title="最新" image="today.png" id="zcd-Ld-Ddf"/>
                </viewController>
                <placeholder placeholderIdentifier="IBFirstResponder" id="oR5-js-MCN" userLabel="First Responder" sceneMemberID="firstResponder"/>
            </objects>
            <point key="canvasLocation" x="69" y="110"/>
        </scene>
        <!--Tab Bar Controller-->
        <scene sceneID="lho-j8-KAk">
            <objects>
                <tabBarController id="f3g-TE-CM5" sceneMemberID="viewController">
                    <nil key="simulatedBottomBarMetrics"/>
                    <tabBar key="tabBar" contentMode="scaleToFill" id="Pfh-BQ-2IY">
                        <rect key="frame" x="0.0" y="0.0" width="320" height="49"/>
                        <autoresizingMask key="autoresizingMask"/>
                        <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
                    </tabBar>
                    <connections>
                        <segue destination="6RE-QU-fnl" kind="relationship" relationship="viewControllers" id="Bp1-vw-Ue5"/>
                        <segue destination="CE2-oN-1xj" kind="relationship" relationship="viewControllers" id="jYy-G6-vab"/>
                        <segue destination="Zmb-fx-dAR" kind="relationship" relationship="viewControllers" id="mIs-3O-kXj"/>
                    </connections>
                </tabBarController>
                <placeholder placeholderIdentifier="IBFirstResponder" id="aXY-SI-6mm" userLabel="First Responder" sceneMemberID="firstResponder"/>
            </objects>
            <point key="canvasLocation" x="-1819" y="326"/>
        </scene>
        <!--更多-->
        <scene sceneID="tkG-C3-IY6">
            <objects>
                <tableViewController title="更多" id="cB3-XF-lPP" userLabel="更多" customClass="MoreViewController" customModule="beauty" customModuleProvider="target" sceneMemberID="viewController">
                    <tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="static" style="plain" separatorStyle="default" rowHeight="60" sectionHeaderHeight="22" sectionFooterHeight="22" id="0kq-6A-vVV">
                        <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                        <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
                        <sections>
                            <tableViewSection id="imT-BV-hDX">
                                <cells>
                                    <tableViewCell contentMode="scaleToFill" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" textLabel="IyD-cQ-5Pn" style="IBUITableViewCellStyleDefault" id="nkX-lm-eY8">
                                        <autoresizingMask key="autoresizingMask"/>
                                        <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="nkX-lm-eY8" id="aLq-Qa-h0J">
                                            <autoresizingMask key="autoresizingMask"/>
                                            <subviews>
                                                <label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="去App Store评分" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="IyD-cQ-5Pn">
                                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
                                                    <fontDescription key="fontDescription" type="system" pointSize="16"/>
                                                    <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
                                                    <nil key="highlightedColor"/>
                                                </label>
                                            </subviews>
                                        </tableViewCellContentView>
                                    </tableViewCell>
                                    <tableViewCell contentMode="scaleToFill" selectionStyle="default" accessoryType="detailDisclosureButton" indentationWidth="10" textLabel="GPH-Sm-jmK" style="IBUITableViewCellStyleDefault" id="z0X-uv-s3E">
                                        <autoresizingMask key="autoresizingMask"/>
                                        <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="z0X-uv-s3E" id="QFI-35-1d8">
                                            <autoresizingMask key="autoresizingMask"/>
                                            <subviews>
                                                <label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="关于" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="GPH-Sm-jmK">
                                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
                                                    <fontDescription key="fontDescription" type="system" pointSize="16"/>
                                                    <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
                                                    <nil key="highlightedColor"/>
                                                </label>
                                            </subviews>
                                        </tableViewCellContentView>
                                        <connections>
                                            <segue destination="UUY-7P-pQR" kind="show" id="VRl-iG-6az"/>
                                        </connections>
                                    </tableViewCell>
                                </cells>
                            </tableViewSection>
                        </sections>
                        <connections>
                            <outlet property="dataSource" destination="cB3-XF-lPP" id="QW7-Hu-VxZ"/>
                            <outlet property="delegate" destination="cB3-XF-lPP" id="LqC-Iz-eYc"/>
                        </connections>
                    </tableView>
                    <navigationItem key="navigationItem" title="更多" id="zxj-2Z-pAB" userLabel="Beauties"/>
                    <connections>
                        <outlet property="appStoreCell" destination="nkX-lm-eY8" id="Yr6-88-Phn"/>
                    </connections>
                </tableViewController>
                <placeholder placeholderIdentifier="IBFirstResponder" id="eyf-31-Jbi" userLabel="First Responder" sceneMemberID="firstResponder"/>
            </objects>
            <point key="canvasLocation" x="561" y="-780"/>
        </scene>
        <!--关于-->
        <scene sceneID="JCH-W7-JL4">
            <objects>
                <viewController title="关于" id="UUY-7P-pQR" customClass="AboutViewController" customModule="beauty" customModuleProvider="target" sceneMemberID="viewController">
                    <layoutGuides>
                        <viewControllerLayoutGuide type="top" id="xSj-2v-BTi"/>
                        <viewControllerLayoutGuide type="bottom" id="MV8-WU-oOQ"/>
                    </layoutGuides>
                    <view key="view" contentMode="scaleToFill" id="Cc0-Fd-P2Q">
                        <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                        <subviews>
                            <label opaque="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="http://gank.io" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="TNv-ke-QKS">
                                <rect key="frame" x="248.5" y="290.5" width="102" height="20"/>
                                <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="17"/>
                                <color key="textColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
                                <nil key="highlightedColor"/>
                            </label>
                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="created by @liushuaikobe" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="alL-Kv-twl">
                                <rect key="frame" x="210" y="500" width="180" height="20.5"/>
                                <fontDescription key="fontDescription" name="HelveticaNeue-Thin" family="Helvetica Neue" pointSize="17"/>
                                <color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
                                <nil key="highlightedColor"/>
                            </label>
                            <imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="logo.png" translatesAutoresizingMaskIntoConstraints="NO" id="fcH-Nq-hGh">
                                <rect key="frame" x="210" y="50" width="180" height="165"/>
                            </imageView>
                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Data Source &amp; Thanks to" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MYx-zE-nds">
                                <rect key="frame" x="205" y="250" width="189.5" height="20"/>
                                <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="17"/>
                                <color key="textColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
                                <nil key="highlightedColor"/>
                            </label>
                        </subviews>
                        <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
                        <constraints>
                            <constraint firstAttribute="centerX" secondItem="alL-Kv-twl" secondAttribute="centerX" id="7II-2C-m9E"/>
                            <constraint firstAttribute="centerX" secondItem="MYx-zE-nds" secondAttribute="centerX" id="Bgj-iE-9R6"/>
                            <constraint firstAttribute="centerY" secondItem="TNv-ke-QKS" secondAttribute="centerY" id="LnR-lY-41D"/>
                            <constraint firstItem="fcH-Nq-hGh" firstAttribute="top" secondItem="Cc0-Fd-P2Q" secondAttribute="topMargin" constant="50" id="Nzt-av-Zmx"/>
                            <constraint firstItem="MV8-WU-oOQ" firstAttribute="top" secondItem="alL-Kv-twl" secondAttribute="bottom" constant="30" id="PP1-sQ-g7V"/>
                            <constraint firstAttribute="centerX" secondItem="fcH-Nq-hGh" secondAttribute="centerX" id="QFR-zc-KTO"/>
                            <constraint firstAttribute="centerX" secondItem="TNv-ke-QKS" secondAttribute="centerX" id="eY2-JZ-7uV"/>
                            <constraint firstItem="TNv-ke-QKS" firstAttribute="top" secondItem="MYx-zE-nds" secondAttribute="bottom" constant="20" id="wtg-Dh-eUP"/>
                        </constraints>
                    </view>
                    <connections>
                        <outlet property="linkLabel" destination="TNv-ke-QKS" id="7k6-Lj-R2q"/>
                    </connections>
                </viewController>
                <placeholder placeholderIdentifier="IBFirstResponder" id="AAO-Ug-dnO" userLabel="First Responder" sceneMemberID="firstResponder"/>
            </objects>
            <point key="canvasLocation" x="1390" y="-758"/>
        </scene>
        <!--更多-->
        <scene sceneID="muH-06-aGi">
            <objects>
                <navigationController id="Zmb-fx-dAR" sceneMemberID="viewController">
                    <tabBarItem key="tabBarItem" title="更多" image="setting.png" id="eVT-co-0XM"/>
                    <navigationBar key="navigationBar" contentMode="scaleToFill" id="yv1-L8-jHj">
                        <rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
                        <autoresizingMask key="autoresizingMask"/>
                    </navigationBar>
                    <connections>
                        <segue destination="cB3-XF-lPP" kind="relationship" relationship="rootViewController" id="eVs-SD-9IV"/>
                    </connections>
                </navigationController>
                <placeholder placeholderIdentifier="IBFirstResponder" id="Lqb-7v-A4J" userLabel="First Responder" sceneMemberID="firstResponder"/>
            </objects>
            <point key="canvasLocation" x="-443" y="-662"/>
        </scene>
    </scenes>
    <resources>
        <image name="history.png" width="30" height="30"/>
        <image name="logo.png" width="180" height="165"/>
        <image name="setting.png" width="30" height="30"/>
        <image name="today.png" width="30" height="30"/>
    </resources>
</document>


================================================
FILE: beauties/BeautyCollectionViewCell.swift
================================================
//
//  BeautyCollectionViewCell.swift
//  beauties
//
//  Created by Shuai Liu on 15/7/1.
//  Copyright (c) 2015年 Shuai Liu. All rights reserved.
//

import Foundation
import UIKit
import Kingfisher

class BeautyCollectionViewCell: UICollectionViewCell {
    
    var imageView: UIImageView
    
    override init(frame: CGRect) {
        imageView = UIImageView()
        super.init(frame: frame)
        commonInit()
    }

    required init?(coder aDecoder: NSCoder) {
        imageView = UIImageView()
        super.init(coder: aDecoder)
        commonInit()
    }
    
    override func prepareForReuse() {
        super.prepareForReuse()
        self.imageView.alpha = 0
    }
    
    func commonInit() -> Void {
        self.clipsToBounds = false
        self.layer.borderWidth = 10
        self.layer.borderColor = UIColor.whiteColor().CGColor
        self.layer.shadowColor = UIColor(red: 187 / 255.0, green: 187 / 255.0, blue: 187 / 255.0, alpha: 1).CGColor
        self.layer.shadowOpacity = 0.5
        self.layer.shadowOffset = CGSizeMake(2, 6)
        
        self.imageView.clipsToBounds = true
        self.imageView.frame = self.bounds
        self.imageView.autoresizingMask = [.FlexibleWidth, .FlexibleHeight]
        self.imageView.contentMode = .ScaleAspectFill
        self.addSubview(self.imageView)
    }
    
    func bindData(entity: BeautyImageEntity) -> Void {
        
        if let urlString = entity.imageUrl {
            if let url = NSURL(string: urlString) {
                self.imageView.kf_setImageWithURL(url, placeholderImage: nil, optionsInfo: nil, completionHandler: {
                    [weak self](image, error, cacheType, imageURL) -> () in
                    UIView.animateWithDuration(0.5, delay: 0, options: .CurveEaseIn, animations: { () -> Void in
                        self?.imageView.alpha = 1
                        }, completion: nil)
                })
            }
        }
    }
}

================================================
FILE: beauties/BeautyCollectionViewFooter.swift
================================================
//
//  BeautyCollectionViewFooter.swift
//  beauties
//
//  Created by Shuai Liu on 15/8/5.
//  Copyright (c) 2015年 Shuai Liu. All rights reserved.
//

import Foundation
import UIKit

class BeautyCollectionViewFooter: UICollectionReusableView {
    
    var loadingIndicator: UIActivityIndicatorView
    
    override init(frame: CGRect) {
        loadingIndicator = UIActivityIndicatorView(activityIndicatorStyle: .Gray)
        super.init(frame: frame)
        self.commonInit()
    }
    
    required init?(coder aDecoder: NSCoder) {
        loadingIndicator = UIActivityIndicatorView(activityIndicatorStyle: .Gray)
        super.init(coder: aDecoder)
        self.commonInit()
    }
    
    private func commonInit() {
        self.addSubview(loadingIndicator)
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        self.loadingIndicator.center = CGPointMake(CGRectGetMidX(self.bounds), CGRectGetMidY(self.bounds))
    }
    
    func startAnimating() {
        self.loadingIndicator.startAnimating()
    }
    
    func stopAnimating() {
        self.loadingIndicator.stopAnimating()
    }
}

================================================
FILE: beauties/BeautyImageEntity.swift
================================================
//
//  BeautyImageEntity.swift
//  beauties
//
//  Created by Shuai Liu on 15/6/30.
//  Copyright (c) 2015年 Shuai Liu. All rights reserved.
//

import Foundation

class BeautyImageEntity: NSObject, NSCoding {
    var imageUrl: String?
    var imageHeight: Int?
    var imageWidth: Int?
    
    override var description: String {
        return "imageUrl: \(self.imageUrl), imageHeight: \(self.imageHeight), imageWidth: \(self.imageWidth)"
    }
    
    override init() {
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        imageUrl = aDecoder.decodeObjectForKey("imageUrl") as? String
        imageHeight = aDecoder.decodeObjectForKey("imageHeight") as? Int
        imageWidth = aDecoder.decodeObjectForKey("imageWidth") as? Int
    }
    
    func encodeWithCoder(aCoder: NSCoder) {
        if imageUrl != nil {
            aCoder.encodeObject(imageUrl, forKey: "imageUrl")
        }
        if imageHeight != nil {
            aCoder.encodeObject(imageHeight, forKey: "imageHeight")
        }
        if imageWidth != nil {
            aCoder.encodeObject(imageWidth, forKey: "imageWidth")
        }
    }
}

================================================
FILE: beauties/BlurView.swift
================================================
//
//  BlurView.swift
//  beauties
//
//  Created by Shuai Liu on 15/7/1.
//  Copyright (c) 2015年 Shuai Liu. All rights reserved.
//

import Foundation
import UIKit

extension UIView {
    func applyBlurEffect() -> Void {
        let blurEffect = UIBlurEffect(style: .Light)
        let visualEffectView = UIVisualEffectView(effect: blurEffect)
        visualEffectView.frame = self.bounds
        self.addSubview(visualEffectView)
    }
}

================================================
FILE: beauties/HistoryViewController.swift
================================================
//
//  HistoryViewController.swift
//  beauties
//
//  Created by Shuai Liu on 15/7/1.
//  Copyright (c) 2015年 Shuai Liu. All rights reserved.
//

import Foundation
import UIKit

class HistoryViewController: UIViewController, UICollectionViewDelegateFlowLayout, UICollectionViewDelegate, UICollectionViewDataSource, UIScrollViewDelegate {
    
    // ---------------- Views
    var beautyCollectionView: UICollectionView!
    var refreshControl: UIRefreshControl!
    // ---------------- Data
    var beauties: [BeautyImageEntity]
    let sharedMargin = 10
    var page = 1
    var isLoadingNow = false
    
    override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
        beauties = []
        super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
    }

    required init?(coder aDecoder: NSCoder) {
        beauties = []
        super.init(coder: aDecoder)
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = ThemeColor
        self.edgesForExtendedLayout = .None
        self.automaticallyAdjustsScrollViewInsets = true
        
        let statusBarHeight: CGFloat = 20
        
        let collectionViewLayout = UICollectionViewFlowLayout()
        collectionViewLayout.itemSize = CGSizeMake((CGRectGetWidth(self.view.bounds) - 10 * 3) / 2, 200)
        collectionViewLayout.minimumLineSpacing = 10
        collectionViewLayout.minimumInteritemSpacing = 10
        collectionViewLayout.sectionInset = UIEdgeInsetsMake(0, 10, CGRectGetHeight(self.tabBarController!.tabBar.frame) + statusBarHeight + 10, 10)
        
        var frame = self.view.bounds
        frame.origin.y += statusBarHeight
        self.beautyCollectionView = UICollectionView(frame: frame, collectionViewLayout: collectionViewLayout)
        self.beautyCollectionView.alwaysBounceVertical = true
        self.beautyCollectionView.backgroundColor = UIColor.clearColor()
        self.beautyCollectionView.collectionViewLayout = collectionViewLayout
        self.beautyCollectionView.delegate = self
        self.beautyCollectionView.dataSource = self
        self.beautyCollectionView.registerClass(BeautyCollectionViewCell.self, forCellWithReuseIdentifier: "BeautyCollectionViewCell")
        self.beautyCollectionView.registerClass(BeautyCollectionViewFooter.self, forSupplementaryViewOfKind:UICollectionElementKindSectionFooter, withReuseIdentifier: "BeautyCollectionViewFoooter")
        self.view.addSubview(self.beautyCollectionView!)
        
        self.refreshControl = UIRefreshControl()
        self.refreshControl.addTarget(self, action: Selector("refreshData"), forControlEvents: .ValueChanged)
        self.beautyCollectionView.addSubview(self.refreshControl)
        
        // start loading data
        self.refreshData()
    }
    
    // MARK: fetch DATA
    
    func refreshData() {
        page = 1
        self.beauties.removeAll(keepCapacity: false)
        self.fetchNextPage(page)
    }
    
    func fetchNextPage(page: Int) {
        if (self.page > BeautyDateUtil.MAX_PAGE) {
            return
        }
        if (self.isLoadingNow) {
            return
        }
        
        self.isLoadingNow = true
        print("---------- Starting Page \(page) ----------")
        
        NetworkUtil.getBeauties(page) {
            [weak self] result, error in
            print("---------- Finished Page \(page) ----------")
            
            if let sself = self {
                
                sself.isLoadingNow = false
                sself.refreshControl.endRefreshing()
                
                if error == nil {
                    sself.page += 1
                    sself.beauties += result.map(sself.buildEntityWithURLString)
                    sself.setBGI()
                    sself.beautyCollectionView.reloadData()
                }
            }
        }
    }
    
    // set Blur Background Image
    func setBGI() {
        if self.beauties.count == 0 {
            return
        }
        let beautyEntity = self.beauties[0]
        
        let bgi = UIImageView(frame: self.view.bounds)
        bgi.contentMode = .ScaleToFill
        self.view.addSubview(bgi)
        self.view.sendSubviewToBack(bgi)
        
        bgi.kf_setImageWithURL(NSURL(string: beautyEntity.imageUrl!)!, placeholderImage: nil, optionsInfo: nil) {
            image, error, cacheType, imageURL in
            bgi.applyBlurEffect()
        }
    }
    
    func buildEntityWithURLString(url: String) -> BeautyImageEntity {
        let b = BeautyImageEntity()
        b.imageUrl = url
        return b
    }
    
    // MARK: UIScrollViewDelegate
    func scrollViewDidEndDragging(scrollView: UIScrollView, willDecelerate decelerate: Bool) {
        if (scrollView.contentOffset.y + CGRectGetHeight(scrollView.bounds) > scrollView.contentSize.height) {
            self.fetchNextPage(self.page)
        }
    }
    
    // MARK: UICollectionViewDataSource
    
    func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
        return beauties.count
    }
    
    func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
        let cell = collectionView.dequeueReusableCellWithReuseIdentifier("BeautyCollectionViewCell", forIndexPath: indexPath) as! BeautyCollectionViewCell
        if (indexPath.row < beauties.count) {
            let entity = beauties[indexPath.row]
            cell.bindData(entity)
        }
        return cell
    }
    
    func collectionView(collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, atIndexPath indexPath: NSIndexPath) -> UICollectionReusableView {
        let footer: BeautyCollectionViewFooter = collectionView.dequeueReusableSupplementaryViewOfKind(kind, withReuseIdentifier: "BeautyCollectionViewFoooter", forIndexPath: indexPath) as! BeautyCollectionViewFooter
        if (kind == UICollectionElementKindSectionFooter) {
            footer.startAnimating()
        }
        return footer
    }
    
    // MARK: UICollectionViewDelegate
    
    func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
        if (indexPath.row < self.beauties.count) {
            let entity = self.beauties[indexPath.row]
            let todayViewController = TodayViewController()
            todayViewController.todayBeauty = entity
            todayViewController.canBeClosed = true
            self.presentViewController(todayViewController, animated: true, completion: nil)
        }
    }
    
    // MARK: UICollectionViewDelegateFlowLayout
    
    func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, referenceSizeForFooterInSection section: Int) -> CGSize {
        if page >= BeautyDateUtil.MAX_PAGE {
            return CGSizeZero
        } else {
            return CGSizeMake(CGRectGetWidth(collectionView.bounds), 50)
        }
    }
}

================================================
FILE: beauties/Images.xcassets/AppIcon.appiconset/Contents.json
================================================
{
  "images" : [
    {
      "size" : "29x29",
      "idiom" : "iphone",
      "filename" : "Icon-29@2x.png",
      "scale" : "2x"
    },
    {
      "size" : "29x29",
      "idiom" : "iphone",
      "filename" : "Icon-29@3x.png",
      "scale" : "3x"
    },
    {
      "size" : "40x40",
      "idiom" : "iphone",
      "filename" : "Icon-40@2x.png",
      "scale" : "2x"
    },
    {
      "size" : "40x40",
      "idiom" : "iphone",
      "filename" : "Icon-40@3x.png",
      "scale" : "3x"
    },
    {
      "size" : "60x60",
      "idiom" : "iphone",
      "filename" : "Icon-60@2x.png",
      "scale" : "2x"
    },
    {
      "size" : "60x60",
      "idiom" : "iphone",
      "filename" : "Icon-60@3x.png",
      "scale" : "3x"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}

================================================
FILE: beauties/Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>en</string>
	<key>CFBundleDisplayName</key>
	<string>美妹</string>
	<key>CFBundleExecutable</key>
	<string>$(EXECUTABLE_NAME)</string>
	<key>CFBundleIdentifier</key>
	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>$(PRODUCT_NAME)</string>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
	<key>CFBundleShortVersionString</key>
	<string>1.0</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleVersion</key>
	<string>1</string>
	<key>Fabric</key>
	<dict>
		<key>APIKey</key>
		<string>5b6d196a58f4acbc481f40758c365e9b14ae8732</string>
		<key>Kits</key>
		<array>
			<dict>
				<key>KitInfo</key>
				<dict/>
				<key>KitName</key>
				<string>Crashlytics</string>
			</dict>
		</array>
	</dict>
	<key>LSRequiresIPhoneOS</key>
	<true/>
	<key>UILaunchStoryboardName</key>
	<string>LaunchScreen</string>
	<key>UIMainStoryboardFile</key>
	<string>Main</string>
	<key>UIRequiredDeviceCapabilities</key>
	<array>
		<string>armv7</string>
	</array>
	<key>UISupportedInterfaceOrientations</key>
	<array>
		<string>UIInterfaceOrientationPortrait</string>
		<string>UIInterfaceOrientationLandscapeLeft</string>
		<string>UIInterfaceOrientationLandscapeRight</string>
	</array>
	<key>NSAppTransportSecurity</key>
	<dict>
		<key>NSAllowsArbitraryLoads</key>
		<true/>
	</dict>
</dict>
</plist>


================================================
FILE: beauties/MoreViewController.swift
================================================
//
//  MoreViewController.swift
//  beauties
//
//  Created by Shuai Liu on 15/8/3.
//  Copyright (c) 2015年 Shuai Liu. All rights reserved.
//

import Foundation
import UIKit

class MoreViewController: UITableViewController {
    
    var logoImage: UIImageView!
    
    @IBOutlet weak var appStoreCell: UITableViewCell!
    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.tableView.tableFooterView = UIView()
        
        logoImage = UIImageView(image: UIImage(named: "logo.png"))
        logoImage.backgroundColor = UIColor.clearColor()
        logoImage.contentMode = .ScaleAspectFit
        self.view.addSubview(logoImage)
        self.view.bringSubviewToFront(logoImage)
    }
    
    override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        logoImage.center = CGPointMake(CGRectGetMidX(self.view.bounds), CGRectGetHeight(self.view.bounds) - 200 - CGRectGetMinY(logoImage.bounds))
        var frame = logoImage.frame
        frame.size = CGSizeMake(120, 110)
        logoImage.frame = frame
    }
    
    override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
        if let clickedCell = tableView.cellForRowAtIndexPath(indexPath) {
            if clickedCell == appStoreCell {
                let appURL = NSURL(string: "itms-apps://itunes.apple.com/app/1033020551")!
                UIApplication.sharedApplication().openURL(appURL)
            }
        }
    }
}

================================================
FILE: beauties/TodayViewController.swift
================================================
//
//  ViewController.swift
//  beauties
//
//  Created by Shuai Liu on 15/6/27.
//  Copyright (c) 2015年 Shuai Liu. All rights reserved.
//

import Foundation
import UIKit
import Kingfisher

class TodayViewController: UIViewController {

    var beautyImageView: UIImageView!
    var loadingIndicator: UIActivityIndicatorView!
    
    var todayBeauty: BeautyImageEntity?
    var canBeClosed: Bool
    
    override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
        canBeClosed = false
        super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
    }
    
    required init?(coder aDecoder: NSCoder) {
        canBeClosed = false
        super.init(coder: aDecoder)
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = ThemeColor
        self.edgesForExtendedLayout = .None
        
        loadingIndicator = UIActivityIndicatorView(activityIndicatorStyle: .Gray)
        loadingIndicator.hidesWhenStopped = true
        self.view.addSubview(loadingIndicator)
        loadingIndicator.startAnimating()
        
        beautyImageView = UIImageView(frame: self.view.bounds)
        beautyImageView.autoresizingMask = [.FlexibleWidth, .FlexibleHeight]
        beautyImageView.contentMode = .ScaleAspectFit
        beautyImageView.userInteractionEnabled = true
        beautyImageView.backgroundColor = UIColor.clearColor()
        self.view.addSubview(beautyImageView)
        
        if canBeClosed {
            let swipeGesture = UISwipeGestureRecognizer(target: self, action: "onSwipe:")
            swipeGesture.direction = UISwipeGestureRecognizerDirection.Down
            beautyImageView.addGestureRecognizer(swipeGesture)
            
            let tapGesture = UITapGestureRecognizer(target: self, action: "onSwipe:")
            beautyImageView.addGestureRecognizer(tapGesture)
        }
        
        let longPressGenture = UILongPressGestureRecognizer(target: self, action: "onLongPress:")
        beautyImageView.addGestureRecognizer(longPressGenture)
        
        let setImage: BeautyImageEntity -> Void = {
            
            
            
            if let imageURLString = $0.imageUrl {
                if let imageURL = NSURL(string: imageURLString) {
                    self.beautyImageView.alpha = 0
                    KingfisherManager.sharedManager.retrieveImageWithURL(imageURL, optionsInfo: nil, progressBlock: nil, completionHandler: {
                        [weak self](image, error, cacheType, imageURL) -> () in
                        
                        dispatch_async(dispatch_get_main_queue(), {
                            self?.loadingIndicator.stopAnimating()
                            if let beauty = image {
                                self?.beautyImageView.image = beauty
                                self?.setBackgroundImage(beauty)
                                UIView.animateWithDuration(0.7, delay: 0, options: .CurveEaseIn, animations: {
                                    self?.beautyImageView.alpha = 1
                                    }, completion: nil)
                            }
                            self?.view.setNeedsLayout()
                        })
                        
                    })
                }
            }
        };
        
        if todayBeauty != nil {
            setImage(todayBeauty!)
            return
        }
        
        NetworkUtil.getTodayBeauty {
            [weak self] urls in
            
            if let sself = self {
                if urls.count > 0 {
                    sself.todayBeauty = BeautyImageEntity()
                    sself.todayBeauty!.imageUrl = urls[0]
                    setImage(sself.todayBeauty!)
                }
            }
        }
    }
    
    override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        
        if (loadingIndicator.isAnimating()) {
            loadingIndicator.center = CGPointMake(CGRectGetMidX(self.view.bounds), CGRectGetMidY(self.view.bounds))
        }
    }

    func onSwipe(sender: UISwipeGestureRecognizer) {
        if canBeClosed {
            self.dismissViewControllerAnimated(true, completion: nil)
        }
    }
    
    func onLongPress(sender: UILongPressGestureRecognizer) {
        if sender.state == .Began {
            let alertController = UIAlertController(title: nil, message: nil, preferredStyle: .ActionSheet)
            
            let cancelAction = UIAlertAction(title: "取消", style: .Cancel, handler: nil)
            alertController.addAction(cancelAction)
            
            let saveAction = UIAlertAction(title: "保存", style: .Default, handler: {
                (action) -> Void in
                self.saveImage()
            })
            alertController.addAction(saveAction)
            
            let shareAction = UIAlertAction(title: "分享", style: .Default, handler: {
                (action) -> Void in
                self.shareImage()
            })
            alertController.addAction(shareAction)
            
            self.presentViewController(alertController, animated: true, completion: nil)
        }
    }
    
    func setBackgroundImage(image: UIImage) {
        let bgi = UIImageView(image: image)
        bgi.contentMode = .ScaleToFill
        bgi.frame = self.view.bounds
        self.view.addSubview(bgi)
        self.view.sendSubviewToBack(bgi)
        bgi.applyBlurEffect()
    }
    
    func saveImage() {
        if let image = self.beautyImageView.image {
            UIImageWriteToSavedPhotosAlbum(image, self, Selector("saveImageFinished:error:contextInfo:"), nil)
        }
    }
    
    func shareImage() {
        if let image = self.beautyImageView.image {
            let text = "分享漂亮妹纸一枚~"
            let activityController = UIActivityViewController(activityItems: [text, image], applicationActivities: nil)
            [self .presentViewController(activityController, animated: true, completion: nil)]
        }
    }
    
    func saveImageFinished(image: UIImage, error: NSErrorPointer, contextInfo: UnsafePointer<()>) {
        var message = "保存成功 (ฅ´ω`ฅ)"
        var OKTitle = "好的"
        if error != nil {
            print(error.memory)
            message = "保存失败 (´◔ ‸◔')"
            OKTitle = "好吧"
        }
        let alertController = UIAlertController(title: nil, message: message, preferredStyle: .Alert)
        
        let OKAction = UIAlertAction(title: OKTitle, style: .Default, handler: nil)
        alertController.addAction(OKAction)
        
        self.presentViewController(alertController, animated: true, completion: nil)
    }
}



================================================
FILE: beauties/Utils.swift
================================================
//
//  Utils.swift
//  beauties
//
//  Created by Shuai Liu on 15/7/4.
//  Copyright (c) 2015年 Shuai Liu. All rights reserved.
//

import Foundation
import UIKit
import Alamofire

let ThemeColor = UIColor(red: 222.0 / 255.0, green: 110.0 / 255.0, blue: 75.0 / 255.0, alpha: 1)

let DEBUG = true

class BeautyDateUtil {
    
    static let PAGE_SIZE = 20
    static let API_FORMAT = "yyyy/MM/dd"
    static let MAX_PAGE = 5
    
    class func generateHistoryDateString(page: Int) -> [String] {
        return self.generateHistoryDateString(format: self.API_FORMAT, historyCount: self.PAGE_SIZE, page: page)
    }
    
    class func generateHistoryDateString(format format: String, historyCount: Int, page: Int) -> [String] {
        
        let today = NSDate()
        let calendar = NSCalendar.currentCalendar()
        let formatter = NSDateFormatter()
        formatter.dateFormat = format
        
        let unit = ((page - 1) * self.PAGE_SIZE)...(page * self.PAGE_SIZE - 1)
        return unit.map({calendar.dateByAddingUnit(.Day, value: -$0, toDate: today, options: [])}).filter({$0 != nil}).map({formatter.stringFromDate($0!)})
    }
    
    class func todayString() -> String {
        let today = NSDate()
        let formatter = NSDateFormatter()
        formatter.dateFormat = self.API_FORMAT
        return formatter.stringFromDate(today)
    }
}

class NetworkUtil {
    static let API_DATA_URL = "http://gank.avosapps.com/api/data/%E7%A6%8F%E5%88%A9/"
    static let API_DAY_URL  = "http://gank.avosapps.com/api/day/"
    static let API_RANDOM_URL = "http://gank.avosapps.com/api/random/data/%E7%A6%8F%E5%88%A9/"
    
    static let PAGE_SIZE = 20
    
    class func getBeauties(page: Int, complete: ([String], ErrorType?) -> Void) {

        let url = "\(API_DATA_URL)\(PAGE_SIZE)/\(page)"
        
        if (DEBUG) {
            print(url)
        }

        Alamofire.request(.GET, url).responseJSON {
            _, _, result in
            switch result {
            case let .Success(json):
                complete(NetworkUtil.parseBeautyList(json), nil)
            case let .Failure(_, error):
                print(error)
                complete([String](), error)
            }
        }
    }
    
    class func getTodayBeauty(complete: [String] -> Void) {

        if (DEBUG) {
            print(API_DAY_URL + BeautyDateUtil.todayString())
        }
        
        Alamofire.request(.GET, API_DAY_URL + BeautyDateUtil.todayString()).responseJSON {
            _, _, result in
            
            switch result {
            case let .Success(json):
                if let j = json as? Dictionary<String, AnyObject> {
                    if let category = j["category"] as? [String] {
                        if category.contains("福利") {
                            if let results = j["results"] as? Dictionary<String, AnyObject> {
                                if let fulis = results["福利"] as? [Dictionary<String, AnyObject>] {
                                    var ret = [String]()
                                    for fuli in fulis {
                                        ret.append(fuli["url"] as! String)
                                    }
                                    complete(ret)
                                    return
                                }
                            }
                        }
                    }
                }
                // No Beauty today, get a random beauty
                NetworkUtil.getRandomBeauty(1, complete: complete)
            case let .Failure(_, error):
                print(error)
                complete([String]())
            }
            
        }
    }
    
    class func getRandomBeauty(count: Int, complete: [String] -> Void) {
        
        let url = "\(API_RANDOM_URL)\(count)"
        
        if (DEBUG) {
            print("Random URL --> \(url)")
        }

        Alamofire.request(.GET, url).responseJSON {
            _, _, result in
            
            switch result {
            case let .Success(json):
                complete(NetworkUtil.parseBeautyList(json))
            case let .Failure(_, error):
                print(error)
                complete([String]())
            }
        }
    }
    
    class func parseBeautyList(json: AnyObject?) -> [String] {
        var ret = [String]()
        if let j = json as? Dictionary<String, AnyObject> {
            if let results = j["results"] as? [Dictionary<String, AnyObject>] {
                for b in results {
                    ret.append(b["url"] as! String)
                }
            }
        }
        return ret
    }
}

================================================
FILE: beautiesTests/Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>en</string>
	<key>CFBundleExecutable</key>
	<string>$(EXECUTABLE_NAME)</string>
	<key>CFBundleIdentifier</key>
	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>$(PRODUCT_NAME)</string>
	<key>CFBundlePackageType</key>
	<string>BNDL</string>
	<key>CFBundleShortVersionString</key>
	<string>1.0</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleVersion</key>
	<string>1</string>
</dict>
</plist>


================================================
FILE: beautiesTests/beautiesTests.swift
================================================
//
//  beautiesTests.swift
//  beautiesTests
//
//  Created by Shuai Liu on 15/6/27.
//  Copyright (c) 2015年 Shuai Liu. All rights reserved.
//

import UIKit
import XCTest

class beautiesTests: XCTestCase {
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    func testExample() {
        // This is an example of a functional test case.
        XCTAssert(true, "Pass")
    }
    
    func testPerformanceExample() {
        // This is an example of a performance test case.
        self.measureBlock() {
            // Put the code you want to measure the time of here.
        }
    }
    
}


================================================
FILE: beauty.xcodeproj/project.pbxproj
================================================
// !$*UTF8*$!
{
	archiveVersion = 1;
	classes = {
	};
	objectVersion = 46;
	objects = {

/* Begin PBXBuildFile section */
		4B1366421B3EF8A100986654 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B1366411B3EF8A100986654 /* AppDelegate.swift */; };
		4B1366441B3EF8A100986654 /* TodayViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B1366431B3EF8A100986654 /* TodayViewController.swift */; };
		4B1366471B3EF8A100986654 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4B1366451B3EF8A100986654 /* Main.storyboard */; };
		4B1366491B3EF8A100986654 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4B1366481B3EF8A100986654 /* Images.xcassets */; };
		4B13664C1B3EF8A100986654 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4B13664A1B3EF8A100986654 /* LaunchScreen.xib */; };
		4B1366581B3EF8A100986654 /* beautiesTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B1366571B3EF8A100986654 /* beautiesTests.swift */; };
		4B459D2E1B47780C00975776 /* Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B459D2D1B47780C00975776 /* Utils.swift */; };
		4B4903B81B6FADFF004D5458 /* MoreViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B4903B71B6FADFF004D5458 /* MoreViewController.swift */; };
		4B4903BB1B6FB23A004D5458 /* logo.png in Resources */ = {isa = PBXBuildFile; fileRef = 4B4903BA1B6FB23A004D5458 /* logo.png */; };
		4B7AC9791B44169200E19056 /* BlurView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B7AC9781B44169200E19056 /* BlurView.swift */; };
		4B7AC97E1B441DC700E19056 /* HistoryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B7AC97D1B441DC700E19056 /* HistoryViewController.swift */; };
		4B7AC9801B4423AD00E19056 /* BeautyCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B7AC97F1B4423AD00E19056 /* BeautyCollectionViewCell.swift */; };
		4B8A88D71B73A386005470F0 /* AboutViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B8A88D61B73A386005470F0 /* AboutViewController.swift */; };
		4BC431171B76446E00FB6895 /* today@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4BC431141B76446E00FB6895 /* today@2x.png */; };
		4BC431181B76446E00FB6895 /* history@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4BC431151B76446E00FB6895 /* history@2x.png */; };
		4BC431191B76446E00FB6895 /* setting@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4BC431161B76446E00FB6895 /* setting@2x.png */; };
		4BD0DD3F1B42C84F00F08CF5 /* Kingfisher.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BD0DD3D1B42C84F00F08CF5 /* Kingfisher.framework */; };
		4BD0DD431B42CBA400F08CF5 /* BeautyImageEntity.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4BD0DD421B42CBA400F08CF5 /* BeautyImageEntity.swift */; };
		4BE566D21B74F1FE0079197A /* Fabric.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BE566D01B74F1FE0079197A /* Fabric.framework */; };
		4BE566D31B74F1FE0079197A /* Crashlytics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BE566D11B74F1FE0079197A /* Crashlytics.framework */; };
		4BF4E6E61B72531100986D21 /* BeautyCollectionViewFooter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4BF4E6E51B72531100986D21 /* BeautyCollectionViewFooter.swift */; };
		4BF7FF0E1BAE6069008DC2C9 /* Alamofire.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BF7FF0D1BAE6069008DC2C9 /* Alamofire.framework */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
		4B1366521B3EF8A100986654 /* PBXContainerItemProxy */ = {
			isa = PBXContainerItemProxy;
			containerPortal = 4B1366341B3EF8A100986654 /* Project object */;
			proxyType = 1;
			remoteGlobalIDString = 4B13663B1B3EF8A100986654;
			remoteInfo = beauties;
		};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
		4B13663C1B3EF8A100986654 /* beauty.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = beauty.app; sourceTree = BUILT_PRODUCTS_DIR; };
		4B1366401B3EF8A100986654 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
		4B1366411B3EF8A100986654 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
		4B1366431B3EF8A100986654 /* TodayViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TodayViewController.swift; sourceTree = "<group>"; };
		4B1366461B3EF8A100986654 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
		4B1366481B3EF8A100986654 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
		4B13664B1B3EF8A100986654 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
		4B1366511B3EF8A100986654 /* beautyTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = beautyTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
		4B1366561B3EF8A100986654 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
		4B1366571B3EF8A100986654 /* beautiesTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = beautiesTests.swift; sourceTree = "<group>"; };
		4B459D2D1B47780C00975776 /* Utils.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Utils.swift; sourceTree = "<group>"; };
		4B4903B71B6FADFF004D5458 /* MoreViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MoreViewController.swift; sourceTree = "<group>"; };
		4B4903BA1B6FB23A004D5458 /* logo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = logo.png; sourceTree = "<group>"; };
		4B7AC9781B44169200E19056 /* BlurView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BlurView.swift; sourceTree = "<group>"; };
		4B7AC97D1B441DC700E19056 /* HistoryViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HistoryViewController.swift; sourceTree = "<group>"; };
		4B7AC97F1B4423AD00E19056 /* BeautyCollectionViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BeautyCollectionViewCell.swift; sourceTree = "<group>"; };
		4B8A88D61B73A386005470F0 /* AboutViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AboutViewController.swift; sourceTree = "<group>"; };
		4BC431141B76446E00FB6895 /* today@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "today@2x.png"; sourceTree = "<group>"; };
		4BC431151B76446E00FB6895 /* history@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "history@2x.png"; sourceTree = "<group>"; };
		4BC431161B76446E00FB6895 /* setting@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "setting@2x.png"; sourceTree = "<group>"; };
		4BD0DD3D1B42C84F00F08CF5 /* Kingfisher.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Kingfisher.framework; path = Carthage/Build/iOS/Kingfisher.framework; sourceTree = "<group>"; };
		4BD0DD421B42CBA400F08CF5 /* BeautyImageEntity.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BeautyImageEntity.swift; sourceTree = "<group>"; };
		4BE566D01B74F1FE0079197A /* Fabric.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Fabric.framework; sourceTree = SOURCE_ROOT; };
		4BE566D11B74F1FE0079197A /* Crashlytics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Crashlytics.framework; sourceTree = SOURCE_ROOT; };
		4BF4E6E51B72531100986D21 /* BeautyCollectionViewFooter.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BeautyCollectionViewFooter.swift; sourceTree = "<group>"; };
		4BF7FF0D1BAE6069008DC2C9 /* Alamofire.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Alamofire.framework; path = Carthage/Build/iOS/Alamofire.framework; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
		4B1366391B3EF8A100986654 /* Frameworks */ = {
			isa = PBXFrameworksBuildPhase;
			buildActionMask = 2147483647;
			files = (
				4BF7FF0E1BAE6069008DC2C9 /* Alamofire.framework in Frameworks */,
				4BD0DD3F1B42C84F00F08CF5 /* Kingfisher.framework in Frameworks */,
				4BE566D31B74F1FE0079197A /* Crashlytics.framework in Frameworks */,
				4BE566D21B74F1FE0079197A /* Fabric.framework in Frameworks */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
		4B13664E1B3EF8A100986654 /* Frameworks */ = {
			isa = PBXFrameworksBuildPhase;
			buildActionMask = 2147483647;
			files = (
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
		4B0DBFF41B3F9A4E009250A1 /* Utils */ = {
			isa = PBXGroup;
			children = (
				4B7AC9781B44169200E19056 /* BlurView.swift */,
				4B459D2D1B47780C00975776 /* Utils.swift */,
			);
			name = Utils;
			sourceTree = "<group>";
		};
		4B1366331B3EF8A100986654 = {
			isa = PBXGroup;
			children = (
				4BF7FF0D1BAE6069008DC2C9 /* Alamofire.framework */,
				4BD0DD3D1B42C84F00F08CF5 /* Kingfisher.framework */,
				4B13663E1B3EF8A100986654 /* beauties */,
				4B1366541B3EF8A100986654 /* beautiesTests */,
				4B13663D1B3EF8A100986654 /* Products */,
			);
			sourceTree = "<group>";
		};
		4B13663D1B3EF8A100986654 /* Products */ = {
			isa = PBXGroup;
			children = (
				4B13663C1B3EF8A100986654 /* beauty.app */,
				4B1366511B3EF8A100986654 /* beautyTests.xctest */,
			);
			name = Products;
			sourceTree = "<group>";
		};
		4B13663E1B3EF8A100986654 /* beauties */ = {
			isa = PBXGroup;
			children = (
				4BE566D01B74F1FE0079197A /* Fabric.framework */,
				4BE566D11B74F1FE0079197A /* Crashlytics.framework */,
				4B4903B91B6FB1F4004D5458 /* images */,
				4BD0DD411B42CB8400F08CF5 /* Entiy */,
				4B0DBFF41B3F9A4E009250A1 /* Utils */,
				4B1366411B3EF8A100986654 /* AppDelegate.swift */,
				4B1366431B3EF8A100986654 /* TodayViewController.swift */,
				4B7AC97D1B441DC700E19056 /* HistoryViewController.swift */,
				4B1366451B3EF8A100986654 /* Main.storyboard */,
				4B1366481B3EF8A100986654 /* Images.xcassets */,
				4B13664A1B3EF8A100986654 /* LaunchScreen.xib */,
				4B13663F1B3EF8A100986654 /* Supporting Files */,
				4B7AC97F1B4423AD00E19056 /* BeautyCollectionViewCell.swift */,
				4B4903B71B6FADFF004D5458 /* MoreViewController.swift */,
				4BF4E6E51B72531100986D21 /* BeautyCollectionViewFooter.swift */,
				4B8A88D61B73A386005470F0 /* AboutViewController.swift */,
			);
			path = beauties;
			sourceTree = "<group>";
		};
		4B13663F1B3EF8A100986654 /* Supporting Files */ = {
			isa = PBXGroup;
			children = (
				4B1366401B3EF8A100986654 /* Info.plist */,
			);
			name = "Supporting Files";
			sourceTree = "<group>";
		};
		4B1366541B3EF8A100986654 /* beautiesTests */ = {
			isa = PBXGroup;
			children = (
				4B1366571B3EF8A100986654 /* beautiesTests.swift */,
				4B1366551B3EF8A100986654 /* Supporting Files */,
			);
			path = beautiesTests;
			sourceTree = "<group>";
		};
		4B1366551B3EF8A100986654 /* Supporting Files */ = {
			isa = PBXGroup;
			children = (
				4B1366561B3EF8A100986654 /* Info.plist */,
			);
			name = "Supporting Files";
			sourceTree = "<group>";
		};
		4B4903B91B6FB1F4004D5458 /* images */ = {
			isa = PBXGroup;
			children = (
				4BC431141B76446E00FB6895 /* today@2x.png */,
				4BC431151B76446E00FB6895 /* history@2x.png */,
				4BC431161B76446E00FB6895 /* setting@2x.png */,
				4B4903BA1B6FB23A004D5458 /* logo.png */,
			);
			name = images;
			sourceTree = "<group>";
		};
		4BD0DD411B42CB8400F08CF5 /* Entiy */ = {
			isa = PBXGroup;
			children = (
				4BD0DD421B42CBA400F08CF5 /* BeautyImageEntity.swift */,
			);
			name = Entiy;
			sourceTree = "<group>";
		};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
		4B13663B1B3EF8A100986654 /* beauty */ = {
			isa = PBXNativeTarget;
			buildConfigurationList = 4B13665B1B3EF8A100986654 /* Build configuration list for PBXNativeTarget "beauty" */;
			buildPhases = (
				4B1366381B3EF8A100986654 /* Sources */,
				4B1366391B3EF8A100986654 /* Frameworks */,
				4B13663A1B3EF8A100986654 /* Resources */,
				4BD0DD3C1B42C7FC00F08CF5 /* ShellScript */,
				4BE566CF1B74F1B10079197A /* ShellScript */,
			);
			buildRules = (
			);
			dependencies = (
			);
			name = beauty;
			productName = beauties;
			productReference = 4B13663C1B3EF8A100986654 /* beauty.app */;
			productType = "com.apple.product-type.application";
		};
		4B1366501B3EF8A100986654 /* beautyTests */ = {
			isa = PBXNativeTarget;
			buildConfigurationList = 4B13665E1B3EF8A100986654 /* Build configuration list for PBXNativeTarget "beautyTests" */;
			buildPhases = (
				4B13664D1B3EF8A100986654 /* Sources */,
				4B13664E1B3EF8A100986654 /* Frameworks */,
				4B13664F1B3EF8A100986654 /* Resources */,
			);
			buildRules = (
			);
			dependencies = (
				4B1366531B3EF8A100986654 /* PBXTargetDependency */,
			);
			name = beautyTests;
			productName = beautiesTests;
			productReference = 4B1366511B3EF8A100986654 /* beautyTests.xctest */;
			productType = "com.apple.product-type.bundle.unit-test";
		};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
		4B1366341B3EF8A100986654 /* Project object */ = {
			isa = PBXProject;
			attributes = {
				LastSwiftMigration = 0700;
				LastSwiftUpdateCheck = 0700;
				LastUpgradeCheck = 0700;
				ORGANIZATIONNAME = "Shuai Liu";
				TargetAttributes = {
					4B13663B1B3EF8A100986654 = {
						CreatedOnToolsVersion = 6.3.2;
						DevelopmentTeam = 2C24N82JDX;
					};
					4B1366501B3EF8A100986654 = {
						CreatedOnToolsVersion = 6.3.2;
						TestTargetID = 4B13663B1B3EF8A100986654;
					};
				};
			};
			buildConfigurationList = 4B1366371B3EF8A100986654 /* Build configuration list for PBXProject "beauty" */;
			compatibilityVersion = "Xcode 3.2";
			developmentRegion = English;
			hasScannedForEncodings = 0;
			knownRegions = (
				en,
				Base,
			);
			mainGroup = 4B1366331B3EF8A100986654;
			productRefGroup = 4B13663D1B3EF8A100986654 /* Products */;
			projectDirPath = "";
			projectRoot = "";
			targets = (
				4B13663B1B3EF8A100986654 /* beauty */,
				4B1366501B3EF8A100986654 /* beautyTests */,
			);
		};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
		4B13663A1B3EF8A100986654 /* Resources */ = {
			isa = PBXResourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
				4BC431171B76446E00FB6895 /* today@2x.png in Resources */,
				4B4903BB1B6FB23A004D5458 /* logo.png in Resources */,
				4BC431191B76446E00FB6895 /* setting@2x.png in Resources */,
				4B1366471B3EF8A100986654 /* Main.storyboard in Resources */,
				4BC431181B76446E00FB6895 /* history@2x.png in Resources */,
				4B13664C1B3EF8A100986654 /* LaunchScreen.xib in Resources */,
				4B1366491B3EF8A100986654 /* Images.xcassets in Resources */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
		4B13664F1B3EF8A100986654 /* Resources */ = {
			isa = PBXResourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
		4BD0DD3C1B42C7FC00F08CF5 /* ShellScript */ = {
			isa = PBXShellScriptBuildPhase;
			buildActionMask = 2147483647;
			files = (
			);
			inputPaths = (
				"$(SRCROOT)/Carthage/Build/iOS/Kingfisher.framework",
				"$(SRCROOT)/Carthage/Build/iOS/Alamofire.framework",
			);
			outputPaths = (
			);
			runOnlyForDeploymentPostprocessing = 0;
			shellPath = /bin/sh;
			shellScript = "/usr/local/bin/carthage copy-frameworks";
		};
		4BE566CF1B74F1B10079197A /* ShellScript */ = {
			isa = PBXShellScriptBuildPhase;
			buildActionMask = 2147483647;
			files = (
			);
			inputPaths = (
			);
			outputPaths = (
			);
			runOnlyForDeploymentPostprocessing = 0;
			shellPath = /bin/sh;
			shellScript = "./Fabric.framework/run 5b6d196a58f4acbc481f40758c365e9b14ae8732 3490fc62e207b8c7ec5ae2d4a8578db972041bdd761c9d59f51f7b5ca63b611f";
		};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
		4B1366381B3EF8A100986654 /* Sources */ = {
			isa = PBXSourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
				4B4903B81B6FADFF004D5458 /* MoreViewController.swift in Sources */,
				4B7AC9801B4423AD00E19056 /* BeautyCollectionViewCell.swift in Sources */,
				4B8A88D71B73A386005470F0 /* AboutViewController.swift in Sources */,
				4BD0DD431B42CBA400F08CF5 /* BeautyImageEntity.swift in Sources */,
				4BF4E6E61B72531100986D21 /* BeautyCollectionViewFooter.swift in Sources */,
				4B7AC9791B44169200E19056 /* BlurView.swift in Sources */,
				4B7AC97E1B441DC700E19056 /* HistoryViewController.swift in Sources */,
				4B1366441B3EF8A100986654 /* TodayViewController.swift in Sources */,
				4B1366421B3EF8A100986654 /* AppDelegate.swift in Sources */,
				4B459D2E1B47780C00975776 /* Utils.swift in Sources */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
		4B13664D1B3EF8A100986654 /* Sources */ = {
			isa = PBXSourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
				4B1366581B3EF8A100986654 /* beautiesTests.swift in Sources */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
		4B1366531B3EF8A100986654 /* PBXTargetDependency */ = {
			isa = PBXTargetDependency;
			target = 4B13663B1B3EF8A100986654 /* beauty */;
			targetProxy = 4B1366521B3EF8A100986654 /* PBXContainerItemProxy */;
		};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
		4B1366451B3EF8A100986654 /* Main.storyboard */ = {
			isa = PBXVariantGroup;
			children = (
				4B1366461B3EF8A100986654 /* Base */,
			);
			name = Main.storyboard;
			sourceTree = "<group>";
		};
		4B13664A1B3EF8A100986654 /* LaunchScreen.xib */ = {
			isa = PBXVariantGroup;
			children = (
				4B13664B1B3EF8A100986654 /* Base */,
			);
			name = LaunchScreen.xib;
			sourceTree = "<group>";
		};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
		4B1366591B3EF8A100986654 /* Debug */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;
				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
				CLANG_CXX_LIBRARY = "libc++";
				CLANG_ENABLE_MODULES = YES;
				CLANG_ENABLE_OBJC_ARC = YES;
				CLANG_WARN_BOOL_CONVERSION = YES;
				CLANG_WARN_CONSTANT_CONVERSION = YES;
				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
				CLANG_WARN_EMPTY_BODY = YES;
				CLANG_WARN_ENUM_CONVERSION = YES;
				CLANG_WARN_INT_CONVERSION = YES;
				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
				CLANG_WARN_UNREACHABLE_CODE = YES;
				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
				COPY_PHASE_STRIP = NO;
				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
				ENABLE_STRICT_OBJC_MSGSEND = YES;
				ENABLE_TESTABILITY = YES;
				GCC_C_LANGUAGE_STANDARD = gnu99;
				GCC_DYNAMIC_NO_PIC = NO;
				GCC_NO_COMMON_BLOCKS = YES;
				GCC_OPTIMIZATION_LEVEL = 0;
				GCC_PREPROCESSOR_DEFINITIONS = (
					"DEBUG=1",
					"$(inherited)",
				);
				GCC_SYMBOLS_PRIVATE_EXTERN = NO;
				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
				GCC_WARN_UNDECLARED_SELECTOR = YES;
				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
				GCC_WARN_UNUSED_FUNCTION = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
				MTL_ENABLE_DEBUG_INFO = YES;
				ONLY_ACTIVE_ARCH = YES;
				SDKROOT = iphoneos;
				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
			};
			name = Debug;
		};
		4B13665A1B3EF8A100986654 /* Release */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;
				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
				CLANG_CXX_LIBRARY = "libc++";
				CLANG_ENABLE_MODULES = YES;
				CLANG_ENABLE_OBJC_ARC = YES;
				CLANG_WARN_BOOL_CONVERSION = YES;
				CLANG_WARN_CONSTANT_CONVERSION = YES;
				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
				CLANG_WARN_EMPTY_BODY = YES;
				CLANG_WARN_ENUM_CONVERSION = YES;
				CLANG_WARN_INT_CONVERSION = YES;
				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
				CLANG_WARN_UNREACHABLE_CODE = YES;
				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
				COPY_PHASE_STRIP = NO;
				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
				ENABLE_NS_ASSERTIONS = NO;
				ENABLE_STRICT_OBJC_MSGSEND = YES;
				GCC_C_LANGUAGE_STANDARD = gnu99;
				GCC_NO_COMMON_BLOCKS = YES;
				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
				GCC_WARN_UNDECLARED_SELECTOR = YES;
				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
				GCC_WARN_UNUSED_FUNCTION = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
				MTL_ENABLE_DEBUG_INFO = NO;
				SDKROOT = iphoneos;
				VALIDATE_PRODUCT = YES;
			};
			name = Release;
		};
		4B13665C1B3EF8A100986654 /* Debug */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
				CODE_SIGN_IDENTITY = "iPhone Developer";
				FRAMEWORK_SEARCH_PATHS = (
					"$(inherited)",
					"$(PROJECT_DIR)/Carthage/Build/iOS",
					"$(PROJECT_DIR)",
				);
				INFOPLIST_FILE = beauties/Info.plist;
				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
				PRODUCT_BUNDLE_IDENTIFIER = "vars.me.$(PRODUCT_NAME:rfc1034identifier)";
				PRODUCT_NAME = beauty;
				PROVISIONING_PROFILE = "1e021d34-b179-4904-94ce-d3c038ab20ef";
			};
			name = Debug;
		};
		4B13665D1B3EF8A100986654 /* Release */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
				CODE_SIGN_IDENTITY = "iPhone Developer";
				FRAMEWORK_SEARCH_PATHS = (
					"$(inherited)",
					"$(PROJECT_DIR)/Carthage/Build/iOS",
					"$(PROJECT_DIR)",
				);
				INFOPLIST_FILE = beauties/Info.plist;
				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
				PRODUCT_BUNDLE_IDENTIFIER = "vars.me.$(PRODUCT_NAME:rfc1034identifier)";
				PRODUCT_NAME = beauty;
				PROVISIONING_PROFILE = "1e021d34-b179-4904-94ce-d3c038ab20ef";
			};
			name = Release;
		};
		4B13665F1B3EF8A100986654 /* Debug */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				BUNDLE_LOADER = "$(TEST_HOST)";
				FRAMEWORK_SEARCH_PATHS = (
					"$(SDKROOT)/Developer/Library/Frameworks",
					"$(inherited)",
				);
				GCC_PREPROCESSOR_DEFINITIONS = (
					"DEBUG=1",
					"$(inherited)",
				);
				INFOPLIST_FILE = beautiesTests/Info.plist;
				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
				PRODUCT_BUNDLE_IDENTIFIER = "vars.me.$(PRODUCT_NAME:rfc1034identifier)";
				PRODUCT_NAME = beautyTests;
				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/beauty.app/beauty";
			};
			name = Debug;
		};
		4B1366601B3EF8A100986654 /* Release */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				BUNDLE_LOADER = "$(TEST_HOST)";
				FRAMEWORK_SEARCH_PATHS = (
					"$(SDKROOT)/Developer/Library/Frameworks",
					"$(inherited)",
				);
				INFOPLIST_FILE = beautiesTests/Info.plist;
				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
				PRODUCT_BUNDLE_IDENTIFIER = "vars.me.$(PRODUCT_NAME:rfc1034identifier)";
				PRODUCT_NAME = beautyTests;
				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/beauty.app/beauty";
			};
			name = Release;
		};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
		4B1366371B3EF8A100986654 /* Build configuration list for PBXProject "beauty" */ = {
			isa = XCConfigurationList;
			buildConfigurations = (
				4B1366591B3EF8A100986654 /* Debug */,
				4B13665A1B3EF8A100986654 /* Release */,
			);
			defaultConfigurationIsVisible = 0;
			defaultConfigurationName = Release;
		};
		4B13665B1B3EF8A100986654 /* Build configuration list for PBXNativeTarget "beauty" */ = {
			isa = XCConfigurationList;
			buildConfigurations = (
				4B13665C1B3EF8A100986654 /* Debug */,
				4B13665D1B3EF8A100986654 /* Release */,
			);
			defaultConfigurationIsVisible = 0;
			defaultConfigurationName = Release;
		};
		4B13665E1B3EF8A100986654 /* Build configuration list for PBXNativeTarget "beautyTests" */ = {
			isa = XCConfigurationList;
			buildConfigurations = (
				4B13665F1B3EF8A100986654 /* Debug */,
				4B1366601B3EF8A100986654 /* Release */,
			);
			defaultConfigurationIsVisible = 0;
			defaultConfigurationName = Release;
		};
/* End XCConfigurationList section */
	};
	rootObject = 4B1366341B3EF8A100986654 /* Project object */;
}


================================================
FILE: beauty.xcodeproj/project.xcworkspace/contents.xcworkspacedata
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
   version = "1.0">
   <FileRef
      location = "self:beauty.xcodeproj">
   </FileRef>
</Workspace>
Download .txt
gitextract_lxk37ing/

├── .gitignore
├── Cartfile
├── Cartfile.resolved
├── Crashlytics.framework/
│   ├── Crashlytics
│   ├── Headers/
│   │   ├── Answers.h
│   │   ├── CLSLogging.h
│   │   ├── CLSReport.h
│   │   ├── CLSStackFrame.h
│   │   └── Crashlytics.h
│   ├── Info.plist
│   ├── Modules/
│   │   └── module.modulemap
│   ├── run
│   └── submit
├── Fabric.framework/
│   ├── Fabric
│   ├── Headers/
│   │   ├── FABAttributes.h
│   │   └── Fabric.h
│   ├── Info.plist
│   ├── Modules/
│   │   └── module.modulemap
│   └── run
├── LICENSE
├── README.md
├── beauties/
│   ├── AboutViewController.swift
│   ├── AppDelegate.swift
│   ├── Base.lproj/
│   │   ├── LaunchScreen.xib
│   │   └── Main.storyboard
│   ├── BeautyCollectionViewCell.swift
│   ├── BeautyCollectionViewFooter.swift
│   ├── BeautyImageEntity.swift
│   ├── BlurView.swift
│   ├── HistoryViewController.swift
│   ├── Images.xcassets/
│   │   └── AppIcon.appiconset/
│   │       └── Contents.json
│   ├── Info.plist
│   ├── MoreViewController.swift
│   ├── TodayViewController.swift
│   └── Utils.swift
├── beautiesTests/
│   ├── Info.plist
│   └── beautiesTests.swift
└── beauty.xcodeproj/
    ├── project.pbxproj
    └── project.xcworkspace/
        └── contents.xcworkspacedata
Condensed preview — 39 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (124K chars).
[
  {
    "path": ".gitignore",
    "chars": 632,
    "preview": "# Xcode\n#\nbuild/\n*.pbxuser\n!default.pbxuser\n*.mode1v3\n!default.mode1v3\n*.mode2v3\n!default.mode2v3\n*.perspectivev3\n!defau"
  },
  {
    "path": "Cartfile",
    "chars": 72,
    "preview": "github \"onevcat/Kingfisher\" >= 1.6\ngithub \"Alamofire/Alamofire\" ~> 2.0 \n"
  },
  {
    "path": "Cartfile.resolved",
    "chars": 73,
    "preview": "github \"Alamofire/Alamofire\" \"2.0.2\"\ngithub \"onevcat/Kingfisher\" \"1.6.0\"\n"
  },
  {
    "path": "Crashlytics.framework/Headers/Answers.h",
    "chars": 11462,
    "preview": "//\n//  Answers.h\n//  Crashlytics\n//\n//  Copyright (c) 2015 Crashlytics, Inc. All rights reserved.\n//\n\n#import <Foundatio"
  },
  {
    "path": "Crashlytics.framework/Headers/CLSLogging.h",
    "chars": 2048,
    "preview": "//\n//  CLSLogging.h\n//  Crashlytics\n//\n//  Copyright (c) 2015 Crashlytics, Inc. All rights reserved.\n//\n#ifdef __OBJC__\n"
  },
  {
    "path": "Crashlytics.framework/Headers/CLSReport.h",
    "chars": 3114,
    "preview": "//\n//  CLSReport.h\n//  Crashlytics\n//\n//  Copyright (c) 2015 Crashlytics, Inc. All rights reserved.\n//\n\n#import <Foundat"
  },
  {
    "path": "Crashlytics.framework/Headers/CLSStackFrame.h",
    "chars": 1184,
    "preview": "//\n//  CLSStackFrame.h\n//  Crashlytics\n//\n//  Copyright 2015 Crashlytics, Inc. All rights reserved.\n//\n\n#import <Foundat"
  },
  {
    "path": "Crashlytics.framework/Headers/Crashlytics.h",
    "chars": 11376,
    "preview": "//\n//  Crashlytics.h\n//  Crashlytics\n//\n//  Copyright (c) 2015 Crashlytics, Inc. All rights reserved.\n//\n\n#import <Found"
  },
  {
    "path": "Crashlytics.framework/Info.plist",
    "chars": 1552,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": "Crashlytics.framework/Modules/module.modulemap",
    "chars": 206,
    "preview": "framework module Crashlytics {\n    header \"Crashlytics.h\"\n    header \"Answers.h\"\n    header \"CLSLogging.h\"\n    header \"C"
  },
  {
    "path": "Fabric.framework/Headers/FABAttributes.h",
    "chars": 530,
    "preview": "//\n//  FABAttributes.h\n//  Fabric\n//\n//  Created by Priyanka Joshi on 3/3/15.\n//  Copyright (c) 2015 Twitter. All rights"
  },
  {
    "path": "Fabric.framework/Headers/Fabric.h",
    "chars": 2182,
    "preview": "//\n//  Fabric.h\n//\n//  Copyright (c) 2014 Twitter. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"F"
  },
  {
    "path": "Fabric.framework/Info.plist",
    "chars": 1520,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": "Fabric.framework/Modules/module.modulemap",
    "chars": 98,
    "preview": "framework module Fabric {\n    umbrella header \"Fabric.h\"\n\n    export *\n    module * { export * }\n}"
  },
  {
    "path": "LICENSE",
    "chars": 1077,
    "preview": "The MIT License (MIT)\n\nCopyright (c) 2015 Shuai Liu\n\nPermission is hereby granted, free of charge, to any person obtaini"
  },
  {
    "path": "README.md",
    "chars": 796,
    "preview": "# ![logo](./demos/logo.png)\n\nIt's a project made while I'm learning Swift. The data is fetched from [http://gank.io/](ht"
  },
  {
    "path": "beauties/AboutViewController.swift",
    "chars": 728,
    "preview": "//\n//  AboutViewController.swift\n//  beauties\n//\n//  Created by Shuai Liu on 15/8/6.\n//  Copyright (c) 2015年 Shuai Liu. "
  },
  {
    "path": "beauties/AppDelegate.swift",
    "chars": 2384,
    "preview": "//\n//  AppDelegate.swift\n//  beauties\n//\n//  Created by Shuai Liu on 15/6/27.\n//  Copyright (c) 2015年 Shuai Liu. All rig"
  },
  {
    "path": "beauties/Base.lproj/LaunchScreen.xib",
    "chars": 3243,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.XIB\" versi"
  },
  {
    "path": "beauties/Base.lproj/Main.storyboard",
    "chars": 16722,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard"
  },
  {
    "path": "beauties/BeautyCollectionViewCell.swift",
    "chars": 1947,
    "preview": "//\n//  BeautyCollectionViewCell.swift\n//  beauties\n//\n//  Created by Shuai Liu on 15/7/1.\n//  Copyright (c) 2015年 Shuai "
  },
  {
    "path": "beauties/BeautyCollectionViewFooter.swift",
    "chars": 1130,
    "preview": "//\n//  BeautyCollectionViewFooter.swift\n//  beauties\n//\n//  Created by Shuai Liu on 15/8/5.\n//  Copyright (c) 2015年 Shua"
  },
  {
    "path": "beauties/BeautyImageEntity.swift",
    "chars": 1133,
    "preview": "//\n//  BeautyImageEntity.swift\n//  beauties\n//\n//  Created by Shuai Liu on 15/6/30.\n//  Copyright (c) 2015年 Shuai Liu. A"
  },
  {
    "path": "beauties/BlurView.swift",
    "chars": 439,
    "preview": "//\n//  BlurView.swift\n//  beauties\n//\n//  Created by Shuai Liu on 15/7/1.\n//  Copyright (c) 2015年 Shuai Liu. All rights "
  },
  {
    "path": "beauties/HistoryViewController.swift",
    "chars": 7041,
    "preview": "//\n//  HistoryViewController.swift\n//  beauties\n//\n//  Created by Shuai Liu on 15/7/1.\n//  Copyright (c) 2015年 Shuai Liu"
  },
  {
    "path": "beauties/Images.xcassets/AppIcon.appiconset/Contents.json",
    "chars": 807,
    "preview": "{\n  \"images\" : [\n    {\n      \"size\" : \"29x29\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-29@2x.png\",\n      \"sca"
  },
  {
    "path": "beauties/Info.plist",
    "chars": 1623,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": "beauties/MoreViewController.swift",
    "chars": 1483,
    "preview": "//\n//  MoreViewController.swift\n//  beauties\n//\n//  Created by Shuai Liu on 15/8/3.\n//  Copyright (c) 2015年 Shuai Liu. A"
  },
  {
    "path": "beauties/TodayViewController.swift",
    "chars": 6685,
    "preview": "//\n//  ViewController.swift\n//  beauties\n//\n//  Created by Shuai Liu on 15/6/27.\n//  Copyright (c) 2015年 Shuai Liu. All "
  },
  {
    "path": "beauties/Utils.swift",
    "chars": 4662,
    "preview": "//\n//  Utils.swift\n//  beauties\n//\n//  Created by Shuai Liu on 15/7/4.\n//  Copyright (c) 2015年 Shuai Liu. All rights res"
  },
  {
    "path": "beautiesTests/Info.plist",
    "chars": 733,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": "beautiesTests/beautiesTests.swift",
    "chars": 900,
    "preview": "//\n//  beautiesTests.swift\n//  beautiesTests\n//\n//  Created by Shuai Liu on 15/6/27.\n//  Copyright (c) 2015年 Shuai Liu. "
  },
  {
    "path": "beauty.xcodeproj/project.pbxproj",
    "chars": 25330,
    "preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
  },
  {
    "path": "beauty.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "chars": 151,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:beauty.xcodepro"
  }
]

// ... and 5 more files (download for full content)

About this extraction

This page contains the full source code of the liushuaikobe/beauties GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 39 files (112.4 KB), approximately 30.8k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!