Repository: StanlyHardy/FlareView
Branch: master
Commit: 3d3743e9a247
Files: 23
Total size: 64.9 KB
Directory structure:
gitextract_uj_7r6ce/
├── FlareView/
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── Assets.xcassets/
│ │ └── AppIcon.appiconset/
│ │ └── Contents.json
│ ├── Base.lproj/
│ │ ├── LaunchScreen.storyboard
│ │ └── Main.storyboard
│ ├── Info.plist
│ ├── ViewController.h
│ ├── ViewController.m
│ ├── flares/
│ │ ├── FlareView.h
│ │ └── FlareView.m
│ └── main.m
├── FlareView.xcodeproj/
│ ├── project.pbxproj
│ ├── project.xcworkspace/
│ │ └── contents.xcworkspacedata
│ └── xcuserdata/
│ ├── Dhanalakshmi.xcuserdatad/
│ │ ├── xcdebugger/
│ │ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes/
│ │ ├── FlareView.xcscheme
│ │ └── xcschememanagement.plist
│ └── Stanly.xcuserdatad/
│ └── xcschemes/
│ ├── FlareView.xcscheme
│ └── xcschememanagement.plist
├── FlareViewTests/
│ ├── FlareViewTests.m
│ └── Info.plist
├── FlareViewUITests/
│ ├── FlareViewUITests.m
│ └── Info.plist
└── README.md
================================================
FILE CONTENTS
================================================
================================================
FILE: FlareView/AppDelegate.h
================================================
//The MIT License (MIT)
//
//Copyright (c) 2016 Stanly Moses <stanlyhardy@yahoo.com>
//
//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.
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
================================================
FILE: FlareView/AppDelegate.m
================================================
//The MIT License (MIT)
//
//Copyright (c) 2016 Stanly Moses <stanlyhardy@yahoo.com>
//
//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.
#import "AppDelegate.h"
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application {
// 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.
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
// 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.
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
// 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.
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
// 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.
}
- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
@end
================================================
FILE: FlareView/Assets.xcassets/AppIcon.appiconset/Contents.json
================================================
{
"images" : [
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
================================================
FILE: FlareView/Base.lproj/LaunchScreen.storyboard
================================================
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="16A323" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<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="custom" customColorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>
================================================
FILE: FlareView/Base.lproj/Main.storyboard
================================================
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="16A323" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="f3Z-ff-gjG">
<rect key="frame" x="269" y="268" width="62" height="64"/>
<state key="normal" image="love.png"/>
<connections>
<action selector="didTappedSmiley:" destination="BYZ-38-t0r" eventType="touchUpInside" id="H5y-bV-fTf"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="osf-eJ-XOU">
<rect key="frame" x="236" y="66" width="128" height="128"/>
<state key="normal" image="heart.png"/>
<connections>
<action selector="didTappedHeart:" destination="BYZ-38-t0r" eventType="touchUpInside" id="IAw-zb-C6z"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ViG-hv-im0">
<rect key="frame" x="236" y="377" width="128" height="128"/>
<state key="normal" image="star.png"/>
<connections>
<action selector="didTappedStar:" destination="BYZ-38-t0r" eventType="touchUpInside" id="BGO-L0-zpk"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="ViG-hv-im0" firstAttribute="leading" secondItem="osf-eJ-XOU" secondAttribute="leading" id="B60-Om-cVP"/>
<constraint firstItem="ViG-hv-im0" firstAttribute="top" secondItem="f3Z-ff-gjG" secondAttribute="bottom" constant="45" id="P8p-nk-8w0"/>
<constraint firstItem="f3Z-ff-gjG" firstAttribute="centerY" secondItem="8bC-Xf-vdC" secondAttribute="centerY" id="YHo-Gc-4u6"/>
<constraint firstItem="f3Z-ff-gjG" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="d41-pY-nJT"/>
<constraint firstItem="osf-eJ-XOU" firstAttribute="top" secondItem="y3c-jy-aDJ" secondAttribute="bottom" constant="46" id="dPy-sy-Mmm"/>
<constraint firstItem="osf-eJ-XOU" firstAttribute="centerX" secondItem="f3Z-ff-gjG" secondAttribute="centerX" id="ohb-I3-KA0"/>
</constraints>
</view>
<connections>
<outlet property="heart" destination="osf-eJ-XOU" id="OhW-jk-laG"/>
<outlet property="smiley" destination="f3Z-ff-gjG" id="zlD-NZ-VJI"/>
<outlet property="star" destination="ViG-hv-im0" id="Sb8-gv-Fx2"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="288" y="289"/>
</scene>
</scenes>
<resources>
<image name="heart.png" width="128" height="128"/>
<image name="love.png" width="62" height="64"/>
<image name="star.png" width="128" height="128"/>
</resources>
</document>
================================================
FILE: FlareView/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>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<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>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
================================================
FILE: FlareView/ViewController.h
================================================
//The MIT License (MIT)
//
//Copyright (c) 2016 Stanly Moses <stanlyhardy@yahoo.com>
//
//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.
#import <UIKit/UIKit.h>
#import "FlareView.h"
@interface ViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIButton *smiley;
@property (weak, nonatomic) IBOutlet UIButton *heart;
@property (weak, nonatomic) IBOutlet UIButton *star;
@end
================================================
FILE: FlareView/ViewController.m
================================================
//The MIT License (MIT)
//
//Copyright (c) 2016 Stanly Moses <stanlyhardy@yahoo.com>
//
//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.
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (IBAction)didTappedSmiley:(id)sender {
[[FlareView sharedCenter]flarify:self.smiley inParentView:self.view withColor:[UIColor yellowColor]];
}
- (IBAction)didTappedHeart:(id)sender {
[[FlareView sharedCenter]flarify:self.heart inParentView:self.view withColor:[UIColor redColor]];
}
- (IBAction)didTappedStar:(id)sender {
[[FlareView sharedCenter]flarify:self.star inParentView:self.view withColor:[UIColor blueColor]];
}
@end
================================================
FILE: FlareView/flares/FlareView.h
================================================
//The MIT License (MIT)
//
//Copyright (c) 2016 Stanly Moses <stanlyhardy@yahoo.com>
//
//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.
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface FlareView : NSObject
{
UIColor *flareColor;
}
+ (FlareView *)sharedCenter;
-(void) flarify: (UIView* ) chilView inParentView:(UIView*) rootView withColor : (UIColor *)fillColor;
@end
================================================
FILE: FlareView/flares/FlareView.m
================================================
//The MIT License (MIT)
//
//Copyright (c) 2016 Stanly Moses <stanlyhardy@yahoo.com>
//
//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.
#import "FlareView.h"
@implementation FlareView
static FlareView *sharedFlareViewCenter = nil;
+ (FlareView *)sharedCenter {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{ // make sure sharedCenter has been initialed once in a life time
if (!sharedFlareViewCenter) {
sharedFlareViewCenter = [[super allocWithZone:NULL] init];
}
});
return sharedFlareViewCenter;
}
-(void) flarify: (UIView* ) chilView inParentView:(UIView*) rootView withColor : (UIColor *)fillColor {
chilView.userInteractionEnabled = NO; // prevent user presses continuously
flareColor = fillColor;
chilView.transform = CGAffineTransformMakeTranslation(0, 20);
[UIView animateWithDuration:0.4 delay:0.0 usingSpringWithDamping:0.2 initialSpringVelocity:1.0 options:UIViewAnimationOptionCurveEaseInOut animations:^{
chilView.transform = CGAffineTransformMakeScale(0.01, 0.01);
} completion:^(BOOL finished){
UIView* vortexView = [[UIView alloc] initWithFrame:CGRectMake(chilView.frame.origin.x, chilView.frame.origin.y, chilView.frame.size.width, chilView.frame.size.height)];
CAShapeLayer *vortexLayer = [CAShapeLayer layer];
vortexView.bounds = chilView.bounds;
//set colors
[vortexLayer setStrokeColor:[flareColor CGColor]];
[vortexLayer setFillColor:[[UIColor clearColor] CGColor]];
[vortexLayer setPath:[[UIBezierPath bezierPathWithOvalInRect:vortexView.bounds] CGPath]];
[vortexView.layer addSublayer:vortexLayer];
[rootView addSubview:vortexView];
//Animate circle
[vortexView setTransform:CGAffineTransformMakeScale(0, 0)];
[UIView animateWithDuration:1 animations:^{
[vortexView setTransform:CGAffineTransformMakeScale(1.3, 1.3)];
} completion:^(BOOL finished) {
vortexView.hidden = YES;
//start next animation
[self createFlares:chilView rootView:rootView];
}];
}];
}
-(void) createFlares: (UIView*) chilView rootView: (UIView *) rootView{
[chilView setTransform:CGAffineTransformMakeScale(0, 0)];
//animate icon
[UIView animateWithDuration:0.3/1.5 animations:^{
chilView.transform = CGAffineTransformScale(CGAffineTransformIdentity, 1.1, 1.1);
} completion:^(BOOL finished) {
[UIView animateWithDuration:0.3/2 animations:^{
chilView.transform = CGAffineTransformScale(CGAffineTransformIdentity, 0.9, 0.9);
} completion:^(BOOL finished) {
[UIView animateWithDuration:0.3/2 animations:^{
chilView.transform = CGAffineTransformIdentity;
}];
}];
}];
//add circles around the icon
int numberOfFlares = 20;
CGPoint center = chilView.center;
float radius= 55;
BOOL isBurlyFlare = YES;;
for (int i = 0; i<numberOfFlares; i++) {
//x(t) = r cos(t) + j => r = radius; t= M_PI/numberOfCircles*i*2; j = center.x
//y(t) = r sin(t) + j => r = radius; t= M_PI/numberOfCircles*i*2; j = center.y
float x = radius*cos(M_PI/numberOfFlares*i*2) + center.x;
float y = radius*sin(M_PI/numberOfFlares*i*2) + center.y;
float circleRadius = 10;
if (isBurlyFlare) {
circleRadius = 5;
isBurlyFlare = NO;
}else{
isBurlyFlare = YES;
}
UIView* vortexView = [[UIView alloc] initWithFrame:CGRectMake(x, y, circleRadius, circleRadius)];
CAShapeLayer *circleLayer = [CAShapeLayer layer];
[circleLayer setStrokeColor:[flareColor CGColor]];
[circleLayer setFillColor:[flareColor CGColor]];
[circleLayer setPath:[[UIBezierPath bezierPathWithOvalInRect:vortexView.bounds] CGPath]];
[vortexView.layer addSublayer:circleLayer];
[rootView addSubview:vortexView];
//animate circles
[UIView animateWithDuration:0.8 delay:0 options:UIViewAnimationOptionCurveEaseOut animations:^{
[vortexView setTransform:CGAffineTransformMakeTranslation(radius/3*cos(M_PI/numberOfFlares*i*2), radius/3*sin(M_PI/numberOfFlares*i*2))];
[vortexView setTransform:CGAffineTransformScale(vortexView.transform, 0.01, 0.01)];
} completion:^(BOOL finished) {
[vortexView setTransform:CGAffineTransformMakeScale(0, 0)];
[UIView animateWithDuration:0.2 delay:0 options:UIViewAnimationOptionCurveEaseOut animations:^{
// animate it to the identity transform (100% scale)
chilView.transform = CGAffineTransformIdentity;
} completion:^(BOOL finished){
// if you want to do something once the animation finishes, put it here
chilView.userInteractionEnabled = YES;
}];
}];
}
}
@end
================================================
FILE: FlareView/main.m
================================================
//The MIT License (MIT)
//
//Copyright (c) 2016 Stanly Moses <stanlyhardy@yahoo.com>
//
//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.
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
================================================
FILE: FlareView.xcodeproj/project.pbxproj
================================================
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
E5D2DE581DDD94E3000AC1AA /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E5D2DE571DDD94E3000AC1AA /* main.m */; };
E5D2DE5B1DDD94E3000AC1AA /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E5D2DE5A1DDD94E3000AC1AA /* AppDelegate.m */; };
E5D2DE5E1DDD94E3000AC1AA /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E5D2DE5D1DDD94E3000AC1AA /* ViewController.m */; };
E5D2DE611DDD94E3000AC1AA /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E5D2DE5F1DDD94E3000AC1AA /* Main.storyboard */; };
E5D2DE631DDD94E3000AC1AA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E5D2DE621DDD94E3000AC1AA /* Assets.xcassets */; };
E5D2DE661DDD94E3000AC1AA /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E5D2DE641DDD94E3000AC1AA /* LaunchScreen.storyboard */; };
E5D2DE711DDD94E3000AC1AA /* FlareViewTests.m in Sources */ = {isa = PBXBuildFile; fileRef = E5D2DE701DDD94E3000AC1AA /* FlareViewTests.m */; };
E5D2DE7C1DDD94E3000AC1AA /* FlareViewUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = E5D2DE7B1DDD94E3000AC1AA /* FlareViewUITests.m */; };
E5D2DE8C1DDD9563000AC1AA /* FlareView.m in Sources */ = {isa = PBXBuildFile; fileRef = E5D2DE8B1DDD9563000AC1AA /* FlareView.m */; };
E5D2DE8F1DDD95D7000AC1AA /* heart.png in Resources */ = {isa = PBXBuildFile; fileRef = E5D2DE8D1DDD95D7000AC1AA /* heart.png */; };
E5D2DE901DDD95D7000AC1AA /* love.png in Resources */ = {isa = PBXBuildFile; fileRef = E5D2DE8E1DDD95D7000AC1AA /* love.png */; };
E5D2DE941DDD9AA8000AC1AA /* star.png in Resources */ = {isa = PBXBuildFile; fileRef = E5D2DE931DDD9AA8000AC1AA /* star.png */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
E5D2DE6D1DDD94E3000AC1AA /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = E5D2DE4B1DDD94E3000AC1AA /* Project object */;
proxyType = 1;
remoteGlobalIDString = E5D2DE521DDD94E3000AC1AA;
remoteInfo = FlareView;
};
E5D2DE781DDD94E3000AC1AA /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = E5D2DE4B1DDD94E3000AC1AA /* Project object */;
proxyType = 1;
remoteGlobalIDString = E5D2DE521DDD94E3000AC1AA;
remoteInfo = FlareView;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
E5D2DE531DDD94E3000AC1AA /* FlareView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FlareView.app; sourceTree = BUILT_PRODUCTS_DIR; };
E5D2DE571DDD94E3000AC1AA /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
E5D2DE591DDD94E3000AC1AA /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
E5D2DE5A1DDD94E3000AC1AA /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
E5D2DE5C1DDD94E3000AC1AA /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
E5D2DE5D1DDD94E3000AC1AA /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
E5D2DE601DDD94E3000AC1AA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
E5D2DE621DDD94E3000AC1AA /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
E5D2DE651DDD94E3000AC1AA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
E5D2DE671DDD94E3000AC1AA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
E5D2DE6C1DDD94E3000AC1AA /* FlareViewTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FlareViewTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
E5D2DE701DDD94E3000AC1AA /* FlareViewTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FlareViewTests.m; sourceTree = "<group>"; };
E5D2DE721DDD94E3000AC1AA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
E5D2DE771DDD94E3000AC1AA /* FlareViewUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FlareViewUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
E5D2DE7B1DDD94E3000AC1AA /* FlareViewUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FlareViewUITests.m; sourceTree = "<group>"; };
E5D2DE7D1DDD94E3000AC1AA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
E5D2DE8A1DDD9563000AC1AA /* FlareView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FlareView.h; path = flares/FlareView.h; sourceTree = "<group>"; };
E5D2DE8B1DDD9563000AC1AA /* FlareView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = FlareView.m; path = flares/FlareView.m; sourceTree = "<group>"; };
E5D2DE8D1DDD95D7000AC1AA /* heart.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = heart.png; sourceTree = "<group>"; };
E5D2DE8E1DDD95D7000AC1AA /* love.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = love.png; sourceTree = "<group>"; };
E5D2DE931DDD9AA8000AC1AA /* star.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = star.png; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
E5D2DE501DDD94E3000AC1AA /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
E5D2DE691DDD94E3000AC1AA /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
E5D2DE741DDD94E3000AC1AA /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
E5D2DE4A1DDD94E3000AC1AA = {
isa = PBXGroup;
children = (
E5D2DE551DDD94E3000AC1AA /* FlareView */,
E5D2DE6F1DDD94E3000AC1AA /* FlareViewTests */,
E5D2DE7A1DDD94E3000AC1AA /* FlareViewUITests */,
E5D2DE541DDD94E3000AC1AA /* Products */,
);
sourceTree = "<group>";
};
E5D2DE541DDD94E3000AC1AA /* Products */ = {
isa = PBXGroup;
children = (
E5D2DE531DDD94E3000AC1AA /* FlareView.app */,
E5D2DE6C1DDD94E3000AC1AA /* FlareViewTests.xctest */,
E5D2DE771DDD94E3000AC1AA /* FlareViewUITests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
E5D2DE551DDD94E3000AC1AA /* FlareView */ = {
isa = PBXGroup;
children = (
E5D2DE931DDD9AA8000AC1AA /* star.png */,
E5D2DE8D1DDD95D7000AC1AA /* heart.png */,
E5D2DE8E1DDD95D7000AC1AA /* love.png */,
E5D2DE891DDD9558000AC1AA /* flares */,
E5D2DE591DDD94E3000AC1AA /* AppDelegate.h */,
E5D2DE5A1DDD94E3000AC1AA /* AppDelegate.m */,
E5D2DE5C1DDD94E3000AC1AA /* ViewController.h */,
E5D2DE5D1DDD94E3000AC1AA /* ViewController.m */,
E5D2DE5F1DDD94E3000AC1AA /* Main.storyboard */,
E5D2DE621DDD94E3000AC1AA /* Assets.xcassets */,
E5D2DE641DDD94E3000AC1AA /* LaunchScreen.storyboard */,
E5D2DE671DDD94E3000AC1AA /* Info.plist */,
E5D2DE561DDD94E3000AC1AA /* Supporting Files */,
);
path = FlareView;
sourceTree = "<group>";
};
E5D2DE561DDD94E3000AC1AA /* Supporting Files */ = {
isa = PBXGroup;
children = (
E5D2DE571DDD94E3000AC1AA /* main.m */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
E5D2DE6F1DDD94E3000AC1AA /* FlareViewTests */ = {
isa = PBXGroup;
children = (
E5D2DE701DDD94E3000AC1AA /* FlareViewTests.m */,
E5D2DE721DDD94E3000AC1AA /* Info.plist */,
);
path = FlareViewTests;
sourceTree = "<group>";
};
E5D2DE7A1DDD94E3000AC1AA /* FlareViewUITests */ = {
isa = PBXGroup;
children = (
E5D2DE7B1DDD94E3000AC1AA /* FlareViewUITests.m */,
E5D2DE7D1DDD94E3000AC1AA /* Info.plist */,
);
path = FlareViewUITests;
sourceTree = "<group>";
};
E5D2DE891DDD9558000AC1AA /* flares */ = {
isa = PBXGroup;
children = (
E5D2DE8A1DDD9563000AC1AA /* FlareView.h */,
E5D2DE8B1DDD9563000AC1AA /* FlareView.m */,
);
name = flares;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
E5D2DE521DDD94E3000AC1AA /* FlareView */ = {
isa = PBXNativeTarget;
buildConfigurationList = E5D2DE801DDD94E3000AC1AA /* Build configuration list for PBXNativeTarget "FlareView" */;
buildPhases = (
E5D2DE4F1DDD94E3000AC1AA /* Sources */,
E5D2DE501DDD94E3000AC1AA /* Frameworks */,
E5D2DE511DDD94E3000AC1AA /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = FlareView;
productName = FlareView;
productReference = E5D2DE531DDD94E3000AC1AA /* FlareView.app */;
productType = "com.apple.product-type.application";
};
E5D2DE6B1DDD94E3000AC1AA /* FlareViewTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = E5D2DE831DDD94E3000AC1AA /* Build configuration list for PBXNativeTarget "FlareViewTests" */;
buildPhases = (
E5D2DE681DDD94E3000AC1AA /* Sources */,
E5D2DE691DDD94E3000AC1AA /* Frameworks */,
E5D2DE6A1DDD94E3000AC1AA /* Resources */,
);
buildRules = (
);
dependencies = (
E5D2DE6E1DDD94E3000AC1AA /* PBXTargetDependency */,
);
name = FlareViewTests;
productName = FlareViewTests;
productReference = E5D2DE6C1DDD94E3000AC1AA /* FlareViewTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
E5D2DE761DDD94E3000AC1AA /* FlareViewUITests */ = {
isa = PBXNativeTarget;
buildConfigurationList = E5D2DE861DDD94E3000AC1AA /* Build configuration list for PBXNativeTarget "FlareViewUITests" */;
buildPhases = (
E5D2DE731DDD94E3000AC1AA /* Sources */,
E5D2DE741DDD94E3000AC1AA /* Frameworks */,
E5D2DE751DDD94E3000AC1AA /* Resources */,
);
buildRules = (
);
dependencies = (
E5D2DE791DDD94E3000AC1AA /* PBXTargetDependency */,
);
name = FlareViewUITests;
productName = FlareViewUITests;
productReference = E5D2DE771DDD94E3000AC1AA /* FlareViewUITests.xctest */;
productType = "com.apple.product-type.bundle.ui-testing";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
E5D2DE4B1DDD94E3000AC1AA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0730;
ORGANIZATIONNAME = Dhanalakshmi;
TargetAttributes = {
E5D2DE521DDD94E3000AC1AA = {
CreatedOnToolsVersion = 7.3.1;
};
E5D2DE6B1DDD94E3000AC1AA = {
CreatedOnToolsVersion = 7.3.1;
TestTargetID = E5D2DE521DDD94E3000AC1AA;
};
E5D2DE761DDD94E3000AC1AA = {
CreatedOnToolsVersion = 7.3.1;
TestTargetID = E5D2DE521DDD94E3000AC1AA;
};
};
};
buildConfigurationList = E5D2DE4E1DDD94E3000AC1AA /* Build configuration list for PBXProject "FlareView" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = E5D2DE4A1DDD94E3000AC1AA;
productRefGroup = E5D2DE541DDD94E3000AC1AA /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
E5D2DE521DDD94E3000AC1AA /* FlareView */,
E5D2DE6B1DDD94E3000AC1AA /* FlareViewTests */,
E5D2DE761DDD94E3000AC1AA /* FlareViewUITests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
E5D2DE511DDD94E3000AC1AA /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E5D2DE8F1DDD95D7000AC1AA /* heart.png in Resources */,
E5D2DE901DDD95D7000AC1AA /* love.png in Resources */,
E5D2DE661DDD94E3000AC1AA /* LaunchScreen.storyboard in Resources */,
E5D2DE631DDD94E3000AC1AA /* Assets.xcassets in Resources */,
E5D2DE611DDD94E3000AC1AA /* Main.storyboard in Resources */,
E5D2DE941DDD9AA8000AC1AA /* star.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
E5D2DE6A1DDD94E3000AC1AA /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
E5D2DE751DDD94E3000AC1AA /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
E5D2DE4F1DDD94E3000AC1AA /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E5D2DE5E1DDD94E3000AC1AA /* ViewController.m in Sources */,
E5D2DE5B1DDD94E3000AC1AA /* AppDelegate.m in Sources */,
E5D2DE581DDD94E3000AC1AA /* main.m in Sources */,
E5D2DE8C1DDD9563000AC1AA /* FlareView.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
E5D2DE681DDD94E3000AC1AA /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E5D2DE711DDD94E3000AC1AA /* FlareViewTests.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
E5D2DE731DDD94E3000AC1AA /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E5D2DE7C1DDD94E3000AC1AA /* FlareViewUITests.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
E5D2DE6E1DDD94E3000AC1AA /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = E5D2DE521DDD94E3000AC1AA /* FlareView */;
targetProxy = E5D2DE6D1DDD94E3000AC1AA /* PBXContainerItemProxy */;
};
E5D2DE791DDD94E3000AC1AA /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = E5D2DE521DDD94E3000AC1AA /* FlareView */;
targetProxy = E5D2DE781DDD94E3000AC1AA /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
E5D2DE5F1DDD94E3000AC1AA /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
E5D2DE601DDD94E3000AC1AA /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
E5D2DE641DDD94E3000AC1AA /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
E5D2DE651DDD94E3000AC1AA /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
E5D2DE7E1DDD94E3000AC1AA /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
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;
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_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 = 9.3;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
E5D2DE7F1DDD94E3000AC1AA /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
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 = 9.3;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
E5D2DE811DDD94E3000AC1AA /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = FlareView/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.FlareView;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
E5D2DE821DDD94E3000AC1AA /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = FlareView/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.FlareView;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
E5D2DE841DDD94E3000AC1AA /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
INFOPLIST_FILE = FlareViewTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = vom.FlareViewTests;
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FlareView.app/FlareView";
};
name = Debug;
};
E5D2DE851DDD94E3000AC1AA /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
INFOPLIST_FILE = FlareViewTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = vom.FlareViewTests;
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FlareView.app/FlareView";
};
name = Release;
};
E5D2DE871DDD94E3000AC1AA /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
INFOPLIST_FILE = FlareViewUITests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = vom.FlareViewUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_TARGET_NAME = FlareView;
};
name = Debug;
};
E5D2DE881DDD94E3000AC1AA /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
INFOPLIST_FILE = FlareViewUITests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = vom.FlareViewUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_TARGET_NAME = FlareView;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
E5D2DE4E1DDD94E3000AC1AA /* Build configuration list for PBXProject "FlareView" */ = {
isa = XCConfigurationList;
buildConfigurations = (
E5D2DE7E1DDD94E3000AC1AA /* Debug */,
E5D2DE7F1DDD94E3000AC1AA /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
E5D2DE801DDD94E3000AC1AA /* Build configuration list for PBXNativeTarget "FlareView" */ = {
isa = XCConfigurationList;
buildConfigurations = (
E5D2DE811DDD94E3000AC1AA /* Debug */,
E5D2DE821DDD94E3000AC1AA /* Release */,
);
defaultConfigurationIsVisible = 0;
};
E5D2DE831DDD94E3000AC1AA /* Build configuration list for PBXNativeTarget "FlareViewTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
E5D2DE841DDD94E3000AC1AA /* Debug */,
E5D2DE851DDD94E3000AC1AA /* Release */,
);
defaultConfigurationIsVisible = 0;
};
E5D2DE861DDD94E3000AC1AA /* Build configuration list for PBXNativeTarget "FlareViewUITests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
E5D2DE871DDD94E3000AC1AA /* Debug */,
E5D2DE881DDD94E3000AC1AA /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = E5D2DE4B1DDD94E3000AC1AA /* Project object */;
}
================================================
FILE: FlareView.xcodeproj/project.xcworkspace/contents.xcworkspacedata
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:FlareView.xcodeproj">
</FileRef>
</Workspace>
================================================
FILE: FlareView.xcodeproj/xcuserdata/Dhanalakshmi.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "1"
version = "2.0">
</Bucket>
================================================
FILE: FlareView.xcodeproj/xcuserdata/Dhanalakshmi.xcuserdatad/xcschemes/FlareView.xcscheme
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0730"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E5D2DE521DDD94E3000AC1AA"
BuildableName = "FlareView.app"
BlueprintName = "FlareView"
ReferencedContainer = "container:FlareView.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E5D2DE6B1DDD94E3000AC1AA"
BuildableName = "FlareViewTests.xctest"
BlueprintName = "FlareViewTests"
ReferencedContainer = "container:FlareView.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E5D2DE761DDD94E3000AC1AA"
BuildableName = "FlareViewUITests.xctest"
BlueprintName = "FlareViewUITests"
ReferencedContainer = "container:FlareView.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E5D2DE521DDD94E3000AC1AA"
BuildableName = "FlareView.app"
BlueprintName = "FlareView"
ReferencedContainer = "container:FlareView.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E5D2DE521DDD94E3000AC1AA"
BuildableName = "FlareView.app"
BlueprintName = "FlareView"
ReferencedContainer = "container:FlareView.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E5D2DE521DDD94E3000AC1AA"
BuildableName = "FlareView.app"
BlueprintName = "FlareView"
ReferencedContainer = "container:FlareView.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
================================================
FILE: FlareView.xcodeproj/xcuserdata/Dhanalakshmi.xcuserdatad/xcschemes/xcschememanagement.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>SchemeUserState</key>
<dict>
<key>FlareView.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>E5D2DE521DDD94E3000AC1AA</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>E5D2DE6B1DDD94E3000AC1AA</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>E5D2DE761DDD94E3000AC1AA</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
================================================
FILE: FlareView.xcodeproj/xcuserdata/Stanly.xcuserdatad/xcschemes/FlareView.xcscheme
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0730"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E5D2DE521DDD94E3000AC1AA"
BuildableName = "FlareView.app"
BlueprintName = "FlareView"
ReferencedContainer = "container:FlareView.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E5D2DE6B1DDD94E3000AC1AA"
BuildableName = "FlareViewTests.xctest"
BlueprintName = "FlareViewTests"
ReferencedContainer = "container:FlareView.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E5D2DE761DDD94E3000AC1AA"
BuildableName = "FlareViewUITests.xctest"
BlueprintName = "FlareViewUITests"
ReferencedContainer = "container:FlareView.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E5D2DE521DDD94E3000AC1AA"
BuildableName = "FlareView.app"
BlueprintName = "FlareView"
ReferencedContainer = "container:FlareView.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E5D2DE521DDD94E3000AC1AA"
BuildableName = "FlareView.app"
BlueprintName = "FlareView"
ReferencedContainer = "container:FlareView.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E5D2DE521DDD94E3000AC1AA"
BuildableName = "FlareView.app"
BlueprintName = "FlareView"
ReferencedContainer = "container:FlareView.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
================================================
FILE: FlareView.xcodeproj/xcuserdata/Stanly.xcuserdatad/xcschemes/xcschememanagement.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>SchemeUserState</key>
<dict>
<key>FlareView.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>E5D2DE521DDD94E3000AC1AA</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>E5D2DE6B1DDD94E3000AC1AA</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>E5D2DE761DDD94E3000AC1AA</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
================================================
FILE: FlareViewTests/FlareViewTests.m
================================================
//The MIT License (MIT)
//
//Copyright (c) 2016 Stanly Moses <stanlyhardy@yahoo.com>
//
//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.
#import <XCTest/XCTest.h>
@interface FlareViewTests : XCTestCase
@end
@implementation FlareViewTests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
- (void)testPerformanceExample {
// This is an example of a performance test case.
[self measureBlock:^{
// Put the code you want to measure the time of here.
}];
}
@end
================================================
FILE: FlareViewTests/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: FlareViewUITests/FlareViewUITests.m
================================================
//The MIT License (MIT)
//
//Copyright (c) 2016 Stanly Moses <stanlyhardy@yahoo.com>
//
//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.
#import <XCTest/XCTest.h>
@interface FlareViewUITests : XCTestCase
@end
@implementation FlareViewUITests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
// In UI tests it is usually best to stop immediately when a failure occurs.
self.continueAfterFailure = NO;
// UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
[[[XCUIApplication alloc] init] launch];
// In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
// Use recording to get started writing UI tests.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
@end
================================================
FILE: FlareViewUITests/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: README.md
================================================
# FlareView
> Spice up your app UIView's by adding magical flares around any UIView's.
[![Objectivec Version][objectivec-image]][objectivec-url]
[![Build Status][travis-image]][travis-url]
[![License][license-image]][license-url]
[](https://img.shields.io/cocoapods/v/LFAlertController.svg)
[](http://cocoapods.org/pods/LFAlertController)
Have you ever thought of making your user interface by adding magical flares when the user interacts with your app? Use this library if you wanna do so...

## Features
- [x] All UIView's that's enclosed within a parent view can be flarified without any exception.
- [x] You can customize the flare colours as per your own requirement
## Requirements
- iOS 8.0+
- Xcode 7.3
## Installation
#### CocoaPods
You can use [CocoaPods](http://cocoapods.org/) to install `Flareview` by adding it to your `Podfile`:
```ruby
platform :ios, '8.0'
use_frameworks!
pod 'flareview', '~> 0.1'
```
To get the full benefits import `FlareView/FlareView.h` wherever you import UIKit
``` objective-c
import UIKit
#import <FlareView/FlareView.h>
```
#### Manually
1. Download and drop ```FlareView.h``` and ```FlareView.m``` in your project.
2. Congratulations!
## Usage example
```objective-c
#import <FlareView/FlareView.h>
- (void)viewDidLoad {
[super viewDidLoad];
[[FlareView sharedCenter]flarify:self.smiley inParentView:self.view withColor:[UIColor yellowColor]];
}
```
## Contribute
I would love for you to contribute to **FlareView**, check the ``LICENSE`` file for more info.
## Meta
Stanly Moses – [@Linkedin](https://in.linkedin.com/in/stanlymoses) – stanlimoses@gmail.com
Distributed under the MIT license. See ``LICENSE`` for more information.
[https://github.com/StanlyHardy/FlareView](https://github.com/StanlyHardy/)
[objectivec-image]:https://img.shields.io/badge/Language-Objective%20C-blue.svg?style=flat
[objectivec-url]: https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html
[travis-image]: https://img.shields.io/travis/dbader/node-datadog-metrics/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/dbader/node-datadog-metrics
[license-image]: https://img.shields.io/badge/License-MIT-blue.svg
[license-url]: LICENSE
[codebeat-image]: https://codebeat.co/badges/c19b47ea-2f9d-45df-8458-b2d952fe9dad
[codebeat-url]: https://codebeat.co/projects/github-com-vsouza-awesomeios-com
gitextract_uj_7r6ce/ ├── FlareView/ │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets/ │ │ └── AppIcon.appiconset/ │ │ └── Contents.json │ ├── Base.lproj/ │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ ├── ViewController.h │ ├── ViewController.m │ ├── flares/ │ │ ├── FlareView.h │ │ └── FlareView.m │ └── main.m ├── FlareView.xcodeproj/ │ ├── project.pbxproj │ ├── project.xcworkspace/ │ │ └── contents.xcworkspacedata │ └── xcuserdata/ │ ├── Dhanalakshmi.xcuserdatad/ │ │ ├── xcdebugger/ │ │ │ └── Breakpoints_v2.xcbkptlist │ │ └── xcschemes/ │ │ ├── FlareView.xcscheme │ │ └── xcschememanagement.plist │ └── Stanly.xcuserdatad/ │ └── xcschemes/ │ ├── FlareView.xcscheme │ └── xcschememanagement.plist ├── FlareViewTests/ │ ├── FlareViewTests.m │ └── Info.plist ├── FlareViewUITests/ │ ├── FlareViewUITests.m │ └── Info.plist └── README.md
SYMBOL INDEX (1 symbols across 1 files) FILE: FlareView/flares/FlareView.h function interface (line 26) | interface FlareView : NSObject
Condensed preview — 23 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (73K chars).
[
{
"path": "FlareView/AppDelegate.h",
"chars": 1290,
"preview": "//The MIT License (MIT)\n//\n//Copyright (c) 2016 Stanly Moses <stanlyhardy@yahoo.com>\n//\n//Permission is hereby granted, "
},
{
"path": "FlareView/AppDelegate.m",
"chars": 3044,
"preview": "//The MIT License (MIT)\n//\n//Copyright (c) 2016 Stanly Moses <stanlyhardy@yahoo.com>\n//\n//Permission is hereby granted, "
},
{
"path": "FlareView/Assets.xcassets/AppIcon.appiconset/Contents.json",
"chars": 1077,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"iphone\",\n \"size\" : \"29x29\",\n \"scale\" : \"2x\"\n },\n {\n \"idiom\""
},
{
"path": "FlareView/Base.lproj/LaunchScreen.storyboard",
"chars": 1650,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3"
},
{
"path": "FlareView/Base.lproj/Main.storyboard",
"chars": 5344,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3"
},
{
"path": "FlareView/Info.plist",
"chars": 1495,
"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": "FlareView/ViewController.h",
"chars": 1408,
"preview": "//The MIT License (MIT)\n//\n//Copyright (c) 2016 Stanly Moses <stanlyhardy@yahoo.com>\n//\n//Permission is hereby granted, "
},
{
"path": "FlareView/ViewController.m",
"chars": 1943,
"preview": "//The MIT License (MIT)\n//\n//Copyright (c) 2016 Stanly Moses <stanlyhardy@yahoo.com>\n//\n//Permission is hereby granted, "
},
{
"path": "FlareView/flares/FlareView.h",
"chars": 1404,
"preview": "//The MIT License (MIT)\n//\n//Copyright (c) 2016 Stanly Moses <stanlyhardy@yahoo.com>\n//\n//Permission is hereby granted, "
},
{
"path": "FlareView/flares/FlareView.m",
"chars": 6085,
"preview": "//The MIT License (MIT)\n//\n//Copyright (c) 2016 Stanly Moses <stanlyhardy@yahoo.com>\n//\n//Permission is hereby granted, "
},
{
"path": "FlareView/main.m",
"chars": 1354,
"preview": "//The MIT License (MIT)\n//\n//Copyright (c) 2016 Stanly Moses <stanlyhardy@yahoo.com>\n//\n//Permission is hereby granted, "
},
{
"path": "FlareView.xcodeproj/project.pbxproj",
"chars": 22073,
"preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
},
{
"path": "FlareView.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
"chars": 154,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n version = \"1.0\">\n <FileRef\n location = \"self:FlareView.xcode"
},
{
"path": "FlareView.xcodeproj/xcuserdata/Dhanalakshmi.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist",
"chars": 91,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Bucket\n type = \"1\"\n version = \"2.0\">\n</Bucket>\n"
},
{
"path": "FlareView.xcodeproj/xcuserdata/Dhanalakshmi.xcuserdatad/xcschemes/FlareView.xcscheme",
"chars": 4203,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n LastUpgradeVersion = \"0730\"\n version = \"1.3\">\n <BuildAction\n "
},
{
"path": "FlareView.xcodeproj/xcuserdata/Dhanalakshmi.xcuserdatad/xcschemes/xcschememanagement.plist",
"chars": 661,
"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": "FlareView.xcodeproj/xcuserdata/Stanly.xcuserdatad/xcschemes/FlareView.xcscheme",
"chars": 4203,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n LastUpgradeVersion = \"0730\"\n version = \"1.3\">\n <BuildAction\n "
},
{
"path": "FlareView.xcodeproj/xcuserdata/Stanly.xcuserdatad/xcschemes/xcschememanagement.plist",
"chars": 661,
"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": "FlareViewTests/FlareViewTests.m",
"chars": 1910,
"preview": "//The MIT License (MIT)\n//\n//Copyright (c) 2016 Stanly Moses <stanlyhardy@yahoo.com>\n//\n//Permission is hereby granted, "
},
{
"path": "FlareViewTests/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": "FlareViewUITests/FlareViewUITests.m",
"chars": 2213,
"preview": "//The MIT License (MIT)\n//\n//Copyright (c) 2016 Stanly Moses <stanlyhardy@yahoo.com>\n//\n//Permission is hereby granted, "
},
{
"path": "FlareViewUITests/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": "README.md",
"chars": 2725,
"preview": "# FlareView\n\n> Spice up your app UIView's by adding magical flares around any UIView's.\n\n[![Objectivec Version][objectiv"
}
]
About this extraction
This page contains the full source code of the StanlyHardy/FlareView GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 23 files (64.9 KB), approximately 19.5k tokens, and a symbol index with 1 extracted functions, classes, methods, constants, and types. 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.