-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
马旭
committed
Mar 28, 2017
1 parent
c07ba06
commit 88b4bc1
Showing
27 changed files
with
1,739 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
|
||
# Created by https://www.gitignore.io/api/objective-c,macos | ||
|
||
### macOS ### | ||
*.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
### Objective-C ### | ||
# Xcode | ||
# | ||
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore | ||
|
||
## Build generated | ||
build/ | ||
DerivedData/ | ||
|
||
## Various settings | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
xcuserdata/ | ||
|
||
## Other | ||
*.moved-aside | ||
*.xccheckout | ||
*.xcscmblueprint | ||
|
||
## Obj-C/Swift specific | ||
*.hmap | ||
*.ipa | ||
*.dSYM.zip | ||
*.dSYM | ||
|
||
# CocoaPods | ||
# | ||
# We recommend against adding the Pods directory to your .gitignore. However | ||
# you should judge for yourself, the pros and cons are mentioned at: | ||
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control | ||
# | ||
Pods/ | ||
|
||
# Carthage | ||
# | ||
# Add this line if you want to avoid checking in source code from Carthage dependencies. | ||
# Carthage/Checkouts | ||
|
||
Carthage/Build | ||
|
||
# fastlane | ||
# | ||
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the | ||
# screenshots whenever they are needed. | ||
# For more information about the recommended setup visit: | ||
# https://docs.fastlane.tools/best-practices/source-control/#source-control | ||
|
||
fastlane/report.xml | ||
fastlane/Preview.html | ||
fastlane/screenshots | ||
fastlane/test_output | ||
fastlane/metadata | ||
|
||
# Code Injection | ||
# | ||
# After new code Injection tools there's a generated folder /iOSInjectionProject | ||
# https://github.com/johnno1962/injectionforxcode | ||
|
||
iOSInjectionProject/ | ||
|
||
### Objective-C Patch ### | ||
|
||
# End of https://www.gitignore.io/api/objective-c,macos |
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
OpenCVTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
OpenCVTest/Assets.xcassets/AppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"filename" : "google.png", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"filename" : "IMG_0078.JPG", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// | ||
// Prefix header | ||
// | ||
// The contents of this file are implicitly included at the beginning of every source file. | ||
// | ||
|
||
#ifdef __OBJC__ | ||
#import <Foundation/Foundation.h> | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/** | ||
Copyright (c) 2014-present, Facebook, Inc. | ||
All rights reserved. | ||
This source code is licensed under the BSD-style license found in the | ||
LICENSE file in the root directory of this source tree. An additional grant | ||
of patent rights can be found in the PATENTS file in the same directory. | ||
*/ | ||
|
||
#import <CoreGraphics/CoreGraphics.h> | ||
#import <Foundation/Foundation.h> | ||
|
||
typedef NS_ENUM(NSInteger, FBShimmerDirection) { | ||
//! Shimmer animation goes from left to right | ||
FBShimmerDirectionRight, | ||
//! Shimmer animation goes from right to left | ||
FBShimmerDirectionLeft, | ||
//! Shimmer animation goes from below to above | ||
FBShimmerDirectionUp, | ||
//! Shimmer animation goes from above to below | ||
FBShimmerDirectionDown, | ||
}; | ||
|
||
static const float FBShimmerDefaultBeginTime = CGFLOAT_MAX; | ||
|
||
@protocol FBShimmering <NSObject> | ||
|
||
//! @abstract Set this to YES to start shimming and NO to stop. Defaults to NO. | ||
@property (assign, nonatomic, readwrite, getter = isShimmering) BOOL shimmering; | ||
|
||
//! @abstract The time interval between shimmerings in seconds. Defaults to 0.4. | ||
@property (assign, nonatomic, readwrite) CFTimeInterval shimmeringPauseDuration; | ||
|
||
//! @abstract The opacity of the content while it is shimmering. Defaults to 0.5. | ||
@property (assign, nonatomic, readwrite) CGFloat shimmeringAnimationOpacity; | ||
|
||
//! @abstract The opacity of the content before it is shimmering. Defaults to 1.0. | ||
@property (assign, nonatomic, readwrite) CGFloat shimmeringOpacity; | ||
|
||
//! @abstract The speed of shimmering, in points per second. Defaults to 230. | ||
@property (assign, nonatomic, readwrite) CGFloat shimmeringSpeed; | ||
|
||
//! @abstract The highlight length of shimmering. Range of [0,1], defaults to 1.0. | ||
@property (assign, nonatomic, readwrite) CGFloat shimmeringHighlightLength; | ||
|
||
//! @abstract Same as "shimmeringHighlightLength", just for downward compatibility. @deprecated | ||
@property (assign, nonatomic, readwrite, getter = shimmeringHighlightLength, setter = setShimmeringHighlightLength:) CGFloat shimmeringHighlightWidth DEPRECATED_MSG_ATTRIBUTE("Use shimmeringHighlightLength"); | ||
|
||
//! @abstract The direction of shimmering animation. Defaults to FBShimmerDirectionRight. | ||
@property (assign, nonatomic, readwrite) FBShimmerDirection shimmeringDirection; | ||
|
||
//! @abstract The duration of the fade used when shimmer begins. Defaults to 0.1. | ||
@property (assign, nonatomic, readwrite) CFTimeInterval shimmeringBeginFadeDuration; | ||
|
||
//! @abstract The duration of the fade used when shimmer ends. Defaults to 0.3. | ||
@property (assign, nonatomic, readwrite) CFTimeInterval shimmeringEndFadeDuration; | ||
|
||
/** | ||
@abstract The absolute CoreAnimation media time when the shimmer will fade in. | ||
@discussion Only valid after setting {@ref shimmering} to NO. | ||
*/ | ||
@property (assign, nonatomic, readonly) CFTimeInterval shimmeringFadeTime; | ||
|
||
/** | ||
@abstract The absolute CoreAnimation media time when the shimmer will begin. | ||
@discussion Only valid after setting {@ref shimmering} to YES. | ||
*/ | ||
@property (assign, nonatomic) CFTimeInterval shimmeringBeginTime; | ||
|
||
@end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
Copyright (c) 2014-present, Facebook, Inc. | ||
All rights reserved. | ||
This source code is licensed under the BSD-style license found in the | ||
LICENSE file in the root directory of this source tree. An additional grant | ||
of patent rights can be found in the PATENTS file in the same directory. | ||
*/ | ||
|
||
#import <QuartzCore/CALayer.h> | ||
|
||
#import "FBShimmering.h" | ||
|
||
/** | ||
@abstract Lightweight, generic shimmering layer. | ||
*/ | ||
@interface FBShimmeringLayer : CALayer <FBShimmering> | ||
|
||
//! @abstract The content layer to be shimmered. | ||
@property (strong, nonatomic) CALayer *contentLayer; | ||
|
||
@end |
Oops, something went wrong.