├── .gitattributes
├── FNLiveReactions
├── Assets.xcassets
│ ├── Contents.json
│ ├── ill.imageset
│ │ ├── ill.png
│ │ ├── ill-1.png
│ │ ├── ill-2.png
│ │ └── Contents.json
│ ├── angry.imageset
│ │ ├── angry.png
│ │ ├── angry-1.png
│ │ ├── angry-2.png
│ │ └── Contents.json
│ ├── devil.imageset
│ │ ├── devil.png
│ │ ├── devil-1.png
│ │ ├── devil-2.png
│ │ └── Contents.json
│ ├── love.imageset
│ │ ├── in-love.png
│ │ ├── in-love-1.png
│ │ ├── in-love-2.png
│ │ └── Contents.json
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── ViewController.swift
├── Info.plist
├── Base.lproj
│ ├── Main.storyboard
│ └── LaunchScreen.storyboard
└── AppDelegate.swift
├── FNLiveReactions.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
└── project.pbxproj
├── Podfile.lock
├── FNLiveReactions.xcworkspace
└── contents.xcworkspacedata
├── Podfile
├── LICENSE
├── .gitignore
├── FNReactionsView
└── FNReactionsView.swift
├── README.md
└── FNReactionsView.podspec
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Swift gitattributes
2 | *.pbxproj merge=union
3 | *.swift text diff=swift
4 |
--------------------------------------------------------------------------------
/FNLiveReactions/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/FNLiveReactions/Assets.xcassets/ill.imageset/ill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fabiosoft/FNReactionsView/HEAD/FNLiveReactions/Assets.xcassets/ill.imageset/ill.png
--------------------------------------------------------------------------------
/FNLiveReactions/Assets.xcassets/angry.imageset/angry.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fabiosoft/FNReactionsView/HEAD/FNLiveReactions/Assets.xcassets/angry.imageset/angry.png
--------------------------------------------------------------------------------
/FNLiveReactions/Assets.xcassets/devil.imageset/devil.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fabiosoft/FNReactionsView/HEAD/FNLiveReactions/Assets.xcassets/devil.imageset/devil.png
--------------------------------------------------------------------------------
/FNLiveReactions/Assets.xcassets/ill.imageset/ill-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fabiosoft/FNReactionsView/HEAD/FNLiveReactions/Assets.xcassets/ill.imageset/ill-1.png
--------------------------------------------------------------------------------
/FNLiveReactions/Assets.xcassets/ill.imageset/ill-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fabiosoft/FNReactionsView/HEAD/FNLiveReactions/Assets.xcassets/ill.imageset/ill-2.png
--------------------------------------------------------------------------------
/FNLiveReactions/Assets.xcassets/angry.imageset/angry-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fabiosoft/FNReactionsView/HEAD/FNLiveReactions/Assets.xcassets/angry.imageset/angry-1.png
--------------------------------------------------------------------------------
/FNLiveReactions/Assets.xcassets/angry.imageset/angry-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fabiosoft/FNReactionsView/HEAD/FNLiveReactions/Assets.xcassets/angry.imageset/angry-2.png
--------------------------------------------------------------------------------
/FNLiveReactions/Assets.xcassets/devil.imageset/devil-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fabiosoft/FNReactionsView/HEAD/FNLiveReactions/Assets.xcassets/devil.imageset/devil-1.png
--------------------------------------------------------------------------------
/FNLiveReactions/Assets.xcassets/devil.imageset/devil-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fabiosoft/FNReactionsView/HEAD/FNLiveReactions/Assets.xcassets/devil.imageset/devil-2.png
--------------------------------------------------------------------------------
/FNLiveReactions/Assets.xcassets/love.imageset/in-love.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fabiosoft/FNReactionsView/HEAD/FNLiveReactions/Assets.xcassets/love.imageset/in-love.png
--------------------------------------------------------------------------------
/FNLiveReactions/Assets.xcassets/love.imageset/in-love-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fabiosoft/FNReactionsView/HEAD/FNLiveReactions/Assets.xcassets/love.imageset/in-love-1.png
--------------------------------------------------------------------------------
/FNLiveReactions/Assets.xcassets/love.imageset/in-love-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fabiosoft/FNReactionsView/HEAD/FNLiveReactions/Assets.xcassets/love.imageset/in-love-2.png
--------------------------------------------------------------------------------
/FNLiveReactions.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - SnapKit (3.2.0)
3 |
4 | DEPENDENCIES:
5 | - SnapKit
6 |
7 | SPEC CHECKSUMS:
8 | SnapKit: 1ca44df72cfa543218d177cb8aab029d10d86ea7
9 |
10 | PODFILE CHECKSUM: c63ed64f7fbe7750ceec79f56740b17e0c84855a
11 |
12 | COCOAPODS: 1.2.0
13 |
--------------------------------------------------------------------------------
/FNLiveReactions.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment the next line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | target 'FNLiveReactions' do
5 | # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
6 | use_frameworks!
7 |
8 | # Pods for FNLiveReactions
9 | pod 'SnapKit', '~> 3.2.0'
10 | end
11 |
--------------------------------------------------------------------------------
/FNLiveReactions/Assets.xcassets/ill.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "ill.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "ill-1.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "ill-2.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/FNLiveReactions/Assets.xcassets/angry.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "angry.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "angry-1.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "angry-2.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/FNLiveReactions/Assets.xcassets/devil.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "devil-1.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "devil.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "devil-2.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/FNLiveReactions/Assets.xcassets/love.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "in-love.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "in-love-1.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "in-love-2.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2017 Fabio Nisci
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/FNLiveReactions/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // FNLiveReactions
4 | //
5 | // Created by Fabio Nisci on 24/03/17.
6 | // Copyright © 2017 Fabio Nisci. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import SnapKit
11 |
12 | class ViewController: UIViewController {
13 |
14 | var reactionsView:FNReactionsView?
15 |
16 | override func viewDidLoad() {
17 | super.viewDidLoad()
18 | reactionsView = FNReactionsView()
19 | if let reactionsView = reactionsView{
20 | reactionsView.backgroundColor = .clear
21 | view.addSubview(reactionsView)
22 |
23 | reactionsView.snp.makeConstraints({ (make) in
24 | make.top.left.right.equalToSuperview()
25 | make.height.equalTo(300)
26 | })
27 | }
28 |
29 | view.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(handleTap)))
30 | }
31 |
32 | func handleTap(){
33 | let reactions = [#imageLiteral(resourceName: "love"), #imageLiteral(resourceName: "angry"), #imageLiteral(resourceName: "ill"), #imageLiteral(resourceName: "devil")]
34 | (0...10).forEach { (_) in
35 | let image = reactions[Int(arc4random_uniform(UInt32(reactions.count)))]
36 | reactionsView?.showReaction(image: image)
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/FNLiveReactions/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/FNLiveReactions/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/FNLiveReactions/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | # Created by https://www.gitignore.io/api/swift
3 |
4 | ### Swift ###
5 | # Xcode
6 | #
7 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
8 |
9 | ## Build generated
10 | build/
11 | DerivedData/
12 |
13 | ## Various settings
14 | *.pbxuser
15 | !default.pbxuser
16 | *.mode1v3
17 | !default.mode1v3
18 | *.mode2v3
19 | !default.mode2v3
20 | *.perspectivev3
21 | !default.perspectivev3
22 | xcuserdata/
23 |
24 | ## Other
25 | *.moved-aside
26 | *.xccheckout
27 | *.xcscmblueprint
28 |
29 | ## Obj-C/Swift specific
30 | *.hmap
31 | *.ipa
32 | *.dSYM.zip
33 | *.dSYM
34 |
35 | ## Playgrounds
36 | timeline.xctimeline
37 | playground.xcworkspace
38 |
39 | # Swift Package Manager
40 | #
41 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
42 | # Packages/
43 | # Package.pins
44 | .build/
45 |
46 | # CocoaPods
47 | #
48 | # We recommend against adding the Pods directory to your .gitignore. However
49 | # you should judge for yourself, the pros and cons are mentioned at:
50 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
51 | #
52 | Pods/
53 |
54 | # Carthage
55 | #
56 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
57 | # Carthage/Checkouts
58 |
59 | Carthage/Build
60 |
61 | # fastlane
62 | #
63 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
64 | # screenshots whenever they are needed.
65 | # For more information about the recommended setup visit:
66 | # https://docs.fastlane.tools/best-practices/source-control/#source-control
67 |
68 | fastlane/report.xml
69 | fastlane/Preview.html
70 | fastlane/screenshots
71 | fastlane/test_output
72 |
73 | # End of https://www.gitignore.io/api/swift
74 |
--------------------------------------------------------------------------------
/FNLiveReactions/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | }
88 | ],
89 | "info" : {
90 | "version" : 1,
91 | "author" : "xcode"
92 | }
93 | }
--------------------------------------------------------------------------------
/FNLiveReactions/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // FNLiveReactions
4 | //
5 | // Created by Fabio Nisci on 24/03/17.
6 | // Copyright © 2017 Fabio Nisci. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(_ application: UIApplication) {
23 | // 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.
24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
25 | }
26 |
27 | func applicationDidEnterBackground(_ application: UIApplication) {
28 | // 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.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(_ application: UIApplication) {
33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(_ application: UIApplication) {
37 | // 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.
38 | }
39 |
40 | func applicationWillTerminate(_ application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/FNReactionsView/FNReactionsView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // FNReactionsView.swift
3 | // FNLiveReactions
4 | //
5 | // Created by Fabio Nisci on 24/03/17.
6 | // Copyright © 2017 Fabio Nisci. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class FNReactionsView: UIView{
12 |
13 | func showReaction(image: UIImage){
14 | let reactionImageView = UIImageView(image: image)
15 | reactionImageView.contentMode = .scaleAspectFit
16 | let dimension = 20 + drand48() * 10 //reaction emoji size (20-30)
17 | reactionImageView.frame = CGRect(x: 0, y: 0, width: dimension, height: dimension)
18 |
19 | let animation = CAKeyframeAnimation(keyPath: "position")
20 | animation.delegate = self
21 | animation.path = customPath().cgPath
22 | animation.duration = 2 + drand48() * 3 //animation duration (2-3)
23 | animation.fillMode = kCAFillModeForwards
24 | animation.isRemovedOnCompletion = false
25 | animation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseOut)
26 | animation.setValue(reactionImageView, forKey: "imageView")
27 |
28 | reactionImageView.layer.add(animation, forKey: nil)
29 | addSubview(reactionImageView)
30 | }
31 |
32 |
33 | fileprivate func customPath() -> UIBezierPath{
34 | // /-\
35 | // ---/ \----\ /------
36 | // \_/
37 | let path = UIBezierPath()
38 | path.move(to: CGPoint(x: 0, y: self.frame.size.height / 2))
39 | let endPoint = CGPoint(x: self.frame.size.width, y: self.frame.size.height / 2)
40 | let minimumheight = self.frame.size.height * (10/100) // 10%
41 | let maximumheight = self.frame.size.height * (90/100) // 90%
42 | let minimumX = self.frame.size.width * (40/100) // 40%
43 | let maximumX = self.frame.size.width * (60/100) // 60%
44 | let randomYShift = CGFloat(Double(minimumheight) + drand48() * Double(maximumheight))
45 | let cp1 = CGPoint(x: minimumX, y: minimumheight - randomYShift)
46 | let cp2 = CGPoint(x: maximumX, y: maximumheight + randomYShift)
47 | path.addCurve(to: endPoint, controlPoint1: cp1, controlPoint2: cp2)
48 | return path
49 | }
50 | }
51 |
52 | extension FNReactionsView: CAAnimationDelegate{
53 | func animationDidStop(_ anim: CAAnimation, finished flag: Bool) {
54 | if let imageView = anim.value(forKey: "imageView") as? UIImageView{
55 | imageView.removeFromSuperview()
56 | }
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | **FNReactionsView** is a customizable control (based on UIView) to give people a way to show floating emoji like facebook does during live stream, easy way.
2 |
3 |
4 |
5 |
6 |
7 |
8 | Requirements • Usage • Installation • Contribution • Contact • License
9 |
10 |
11 | ## Requirements
12 |
13 | - iOS 8.0+
14 | - Xcode 8.0+
15 | - Swift 3.0+
16 |
17 | ## Usage
18 |
19 | ### Reaction
20 |
21 | A `FNReactionsView` object is a simple view
22 |
23 | ```swift
24 | override func viewDidLoad() {
25 | super.viewDidLoad()
26 | reactionsView = FNReactionsView()
27 | if let reactionsView = reactionsView{
28 | reactionsView.backgroundColor = .clear
29 | view.addSubview(reactionsView)
30 |
31 | reactionsView.snp.makeConstraints({ (make) in
32 | make.top.left.right.equalToSuperview()
33 | make.height.equalTo(300)
34 | })
35 | }
36 | }
37 | ```
38 | (thanks to [SnapKit](https://github.com/SnapKit/SnapKit) for easy constraints handling)
39 |
40 | For easy demonstration you can add a tap gesture to trigger the animation in you `viewDidLoad`
41 |
42 | ```swift
43 | view.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(handleTap)))
44 | ```
45 | and the handler
46 |
47 | ``` swift
48 | func handleTap(){
49 | let reactions = [#imageLiteral(resourceName: "love"), #imageLiteral(resourceName: "angry"), #imageLiteral(resourceName: "ill"), #imageLiteral(resourceName: "devil")]
50 | (0...10).forEach { (_) in
51 | let image = reactions[Int(arc4random_uniform(UInt32(reactions.count)))]
52 | reactionsView?.showReaction(image: image)
53 | }
54 | }
55 | ```
56 |
57 | ## Installation
58 |
59 | #### CocoaPods
60 |
61 | Install CocoaPods if not already available:
62 |
63 | ``` bash
64 | $ [sudo] gem install cocoapods
65 | $ pod setup
66 | ```
67 | Go to the directory of your Xcode project, and Create and Edit your *Podfile* and add _FNReactionsView_:
68 |
69 | ``` bash
70 | $ cd /path/to/MyProject
71 | $ touch Podfile
72 | $ edit Podfile
73 | source 'https://github.com/CocoaPods/Specs.git'
74 | platform :ios, '8.0'
75 |
76 | use_frameworks!
77 | pod 'FNReactionsView'
78 | ```
79 |
80 | Install into your project:
81 |
82 | ``` bash
83 | $ pod install
84 | ```
85 |
86 | Open your project in Xcode from the .xcworkspace file (not the usual project file):
87 |
88 | ``` bash
89 | $ open MyProject.xcworkspace
90 | ```
91 |
92 | You can now `import FNReactionsView` framework into your files.
93 |
94 | #### Manually
95 |
96 | [Download](https://github.com/fabiosoft/FNReactionsView/archive/master.zip) the project and copy the `FNReactionsView` folder into your project to use it in.
97 |
98 | ## Contribution
99 |
100 | Contributions are welcome *♡*.
101 | Inspired by Brian Voong
102 |
103 | ## Contact
104 |
105 | Fabio Nisci • [fabionisci@gmail.com](mailto:fabionisci@gmail.com)
106 |
107 |
108 | ## License (MIT)
109 |
110 | Copyright (c) 2017-present - Fabio Nisci
111 |
112 | Permission is hereby granted, free of charge, to any person obtaining a copy
113 | of this software and associated documentation files (the "Software"), to deal
114 | in the Software without restriction, including without limitation the rights
115 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
116 | copies of the Software, and to permit persons to whom the Software is
117 | furnished to do so, subject to the following conditions:
118 |
119 | The above copyright notice and this permission notice shall be included in
120 | all copies or substantial portions of the Software.
121 |
122 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
123 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
124 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
125 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
126 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
127 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
128 | THE SOFTWARE.
129 |
--------------------------------------------------------------------------------
/FNReactionsView.podspec:
--------------------------------------------------------------------------------
1 | #
2 | # Be sure to run `pod spec lint FNReactionsView.podspec' to ensure this is a
3 | # valid spec and to remove all comments including this before submitting the spec.
4 | #
5 | # To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
6 | # To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
7 | #
8 |
9 | Pod::Spec.new do |s|
10 |
11 |
12 | s.name = "FNReactionsView"
13 | s.version = "1.0.0"
14 | s.summary = "FNReactionsView shows floating emoji like facebook does during live stream, easy way."
15 |
16 | s.description = <<-DESC
17 | FNReactionsView is a customizable control (based on UIView) to give people a way to show floating emoji like facebook does during live stream, easy way.
18 | DESC
19 |
20 | s.homepage = "https://github.com/fabiosoft/FNReactionsView"
21 | s.screenshots = "https://cloud.githubusercontent.com/assets/812037/24314191/b7b425b2-10e0-11e7-9539-7f28fee7d982.png"
22 | #s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"
23 |
24 |
25 | # ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
26 | #
27 | # Licensing your code is important. See http://choosealicense.com for more info.
28 | # CocoaPods will detect a license file if there is a named LICENSE*
29 | # Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
30 | #
31 |
32 | #s.license = "MIT (example)"
33 | s.license = { :type => "MIT", :file => "LICENSE" }
34 |
35 |
36 | # ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
37 | #
38 | # Specify the authors of the library, with email addresses. Email addresses
39 | # of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
40 | # accepts just a name if you'd rather not provide an email address.
41 | #
42 | # Specify a social_media_url where others can refer to, for example a twitter
43 | # profile URL.
44 | #
45 |
46 | s.author = { "Fabio Nisci" => "fabionisci@gmail.com" }
47 | # Or just: s.author = "Fabio Nisci"
48 | # s.authors = { "Fabio Nisci" => "staff@fabiosoft.com" }
49 | s.social_media_url = "http://twitter.com/fabiosoft"
50 |
51 | # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
52 | #
53 | # If this Pod runs only on iOS or OS X, then specify the platform and
54 | # the deployment target. You can optionally include the target after the platform.
55 | #
56 |
57 | s.platform = :ios, "9.0"
58 | # s.platform = :ios, "5.0"
59 |
60 | # When using multiple platforms
61 | # s.ios.deployment_target = "5.0"
62 | # s.osx.deployment_target = "10.7"
63 | # s.watchos.deployment_target = "2.0"
64 | # s.tvos.deployment_target = "9.0"
65 |
66 |
67 | # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
68 | #
69 | # Specify the location from where the source should be retrieved.
70 | # Supports git, hg, bzr, svn and HTTP.
71 | #
72 |
73 | s.source = { :git => "https://github.com/fabiosoft/FNReactionsView.git", :tag => "#{s.version}" }
74 |
75 |
76 | # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
77 | #
78 | # CocoaPods is smart about how it includes source code. For source files
79 | # giving a folder will include any swift, h, m, mm, c & cpp files.
80 | # For header files it will include any header in the folder.
81 | # Not including the public_header_files will make all headers public.
82 | #
83 |
84 | s.source_files = "#{s.name}"
85 | #s.exclude_files = "Classes/Exclude"
86 |
87 | # s.public_header_files = "Classes/**/*.h"
88 |
89 |
90 | # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
91 | #
92 | # A list of resources included with the Pod. These are copied into the
93 | # target bundle with a build phase script. Anything else will be cleaned.
94 | # You can preserve files from being cleaned, please don't preserve
95 | # non-essential files like tests, examples and documentation.
96 | #
97 |
98 | # s.resource = "icon.png"
99 | # s.resources = "Resources/*.png"
100 |
101 | # s.preserve_paths = "FilesToSave", "MoreFilesToSave"
102 |
103 |
104 | # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
105 | #
106 | # Link your library with frameworks, or libraries. Libraries do not include
107 | # the lib prefix of their name.
108 | #
109 |
110 | # s.framework = "SomeFramework"
111 | # s.frameworks = "SomeFramework", "AnotherFramework"
112 |
113 | # s.library = "iconv"
114 | # s.libraries = "iconv", "xml2"
115 |
116 |
117 | # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
118 | #
119 | # If your library depends on compiler flags you can set them in the xcconfig hash
120 | # where they will only apply to your library. If you depend on other Podspecs
121 | # you can include multiple dependencies to ensure it works.
122 |
123 | # s.requires_arc = true
124 |
125 | # s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
126 | # s.dependency "JSONKit", "~> 1.4"
127 |
128 | end
129 |
--------------------------------------------------------------------------------
/FNLiveReactions.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 57EBBA27F42C6DEC79CD075B /* Pods_FNLiveReactions.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06ACAA1D609674031BDF99DC /* Pods_FNLiveReactions.framework */; };
11 | E5EDE2421E859BB800904469 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E5EDE2411E859BB800904469 /* AppDelegate.swift */; };
12 | E5EDE2441E859BB800904469 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E5EDE2431E859BB800904469 /* ViewController.swift */; };
13 | E5EDE2471E859BB800904469 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E5EDE2451E859BB800904469 /* Main.storyboard */; };
14 | E5EDE2491E859BB800904469 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E5EDE2481E859BB800904469 /* Assets.xcassets */; };
15 | E5EDE24C1E859BB800904469 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E5EDE24A1E859BB800904469 /* LaunchScreen.storyboard */; };
16 | E5EDE2551E85B3FF00904469 /* FNReactionsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E5EDE2541E85B3FF00904469 /* FNReactionsView.swift */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXFileReference section */
20 | 06ACAA1D609674031BDF99DC /* Pods_FNLiveReactions.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_FNLiveReactions.framework; sourceTree = BUILT_PRODUCTS_DIR; };
21 | 303C9FCB6663007C596C5364 /* Pods-FNLiveReactions.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FNLiveReactions.debug.xcconfig"; path = "Pods/Target Support Files/Pods-FNLiveReactions/Pods-FNLiveReactions.debug.xcconfig"; sourceTree = ""; };
22 | D976C0F2ACAE1F9EE411D013 /* Pods-FNLiveReactions.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FNLiveReactions.release.xcconfig"; path = "Pods/Target Support Files/Pods-FNLiveReactions/Pods-FNLiveReactions.release.xcconfig"; sourceTree = ""; };
23 | E5EDE23E1E859BB800904469 /* FNLiveReactions.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FNLiveReactions.app; sourceTree = BUILT_PRODUCTS_DIR; };
24 | E5EDE2411E859BB800904469 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
25 | E5EDE2431E859BB800904469 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
26 | E5EDE2461E859BB800904469 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
27 | E5EDE2481E859BB800904469 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
28 | E5EDE24B1E859BB800904469 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
29 | E5EDE24D1E859BB800904469 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
30 | E5EDE2541E85B3FF00904469 /* FNReactionsView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FNReactionsView.swift; sourceTree = ""; };
31 | /* End PBXFileReference section */
32 |
33 | /* Begin PBXFrameworksBuildPhase section */
34 | E5EDE23B1E859BB800904469 /* Frameworks */ = {
35 | isa = PBXFrameworksBuildPhase;
36 | buildActionMask = 2147483647;
37 | files = (
38 | 57EBBA27F42C6DEC79CD075B /* Pods_FNLiveReactions.framework in Frameworks */,
39 | );
40 | runOnlyForDeploymentPostprocessing = 0;
41 | };
42 | /* End PBXFrameworksBuildPhase section */
43 |
44 | /* Begin PBXGroup section */
45 | 23A0D1727B3B2CEF55F34F78 /* Pods */ = {
46 | isa = PBXGroup;
47 | children = (
48 | 303C9FCB6663007C596C5364 /* Pods-FNLiveReactions.debug.xcconfig */,
49 | D976C0F2ACAE1F9EE411D013 /* Pods-FNLiveReactions.release.xcconfig */,
50 | );
51 | name = Pods;
52 | sourceTree = "";
53 | };
54 | AE0DA8A11EEB699584C09AF9 /* Frameworks */ = {
55 | isa = PBXGroup;
56 | children = (
57 | 06ACAA1D609674031BDF99DC /* Pods_FNLiveReactions.framework */,
58 | );
59 | name = Frameworks;
60 | sourceTree = "";
61 | };
62 | E5EDE2351E859BB800904469 = {
63 | isa = PBXGroup;
64 | children = (
65 | E5EDE2531E85B3E400904469 /* FNReactionsView */,
66 | E5EDE2401E859BB800904469 /* FNLiveReactions */,
67 | E5EDE23F1E859BB800904469 /* Products */,
68 | 23A0D1727B3B2CEF55F34F78 /* Pods */,
69 | AE0DA8A11EEB699584C09AF9 /* Frameworks */,
70 | );
71 | sourceTree = "";
72 | };
73 | E5EDE23F1E859BB800904469 /* Products */ = {
74 | isa = PBXGroup;
75 | children = (
76 | E5EDE23E1E859BB800904469 /* FNLiveReactions.app */,
77 | );
78 | name = Products;
79 | sourceTree = "";
80 | };
81 | E5EDE2401E859BB800904469 /* FNLiveReactions */ = {
82 | isa = PBXGroup;
83 | children = (
84 | E5EDE2411E859BB800904469 /* AppDelegate.swift */,
85 | E5EDE2431E859BB800904469 /* ViewController.swift */,
86 | E5EDE2451E859BB800904469 /* Main.storyboard */,
87 | E5EDE2481E859BB800904469 /* Assets.xcassets */,
88 | E5EDE24A1E859BB800904469 /* LaunchScreen.storyboard */,
89 | E5EDE24D1E859BB800904469 /* Info.plist */,
90 | );
91 | path = FNLiveReactions;
92 | sourceTree = "";
93 | };
94 | E5EDE2531E85B3E400904469 /* FNReactionsView */ = {
95 | isa = PBXGroup;
96 | children = (
97 | E5EDE2541E85B3FF00904469 /* FNReactionsView.swift */,
98 | );
99 | path = FNReactionsView;
100 | sourceTree = "";
101 | };
102 | /* End PBXGroup section */
103 |
104 | /* Begin PBXNativeTarget section */
105 | E5EDE23D1E859BB800904469 /* FNLiveReactions */ = {
106 | isa = PBXNativeTarget;
107 | buildConfigurationList = E5EDE2501E859BB800904469 /* Build configuration list for PBXNativeTarget "FNLiveReactions" */;
108 | buildPhases = (
109 | 6721620D1A70E9ADAB89BD3A /* [CP] Check Pods Manifest.lock */,
110 | E5EDE23A1E859BB800904469 /* Sources */,
111 | E5EDE23B1E859BB800904469 /* Frameworks */,
112 | E5EDE23C1E859BB800904469 /* Resources */,
113 | C4A2FE78C3E271C4F62F1691 /* [CP] Embed Pods Frameworks */,
114 | 3338175DC328A57BD67B90FB /* [CP] Copy Pods Resources */,
115 | );
116 | buildRules = (
117 | );
118 | dependencies = (
119 | );
120 | name = FNLiveReactions;
121 | productName = FNLiveReactions;
122 | productReference = E5EDE23E1E859BB800904469 /* FNLiveReactions.app */;
123 | productType = "com.apple.product-type.application";
124 | };
125 | /* End PBXNativeTarget section */
126 |
127 | /* Begin PBXProject section */
128 | E5EDE2361E859BB800904469 /* Project object */ = {
129 | isa = PBXProject;
130 | attributes = {
131 | LastSwiftUpdateCheck = 0820;
132 | LastUpgradeCheck = 0820;
133 | ORGANIZATIONNAME = "Fabio Nisci";
134 | TargetAttributes = {
135 | E5EDE23D1E859BB800904469 = {
136 | CreatedOnToolsVersion = 8.2.1;
137 | DevelopmentTeam = C9W22UY94N;
138 | ProvisioningStyle = Automatic;
139 | };
140 | };
141 | };
142 | buildConfigurationList = E5EDE2391E859BB800904469 /* Build configuration list for PBXProject "FNLiveReactions" */;
143 | compatibilityVersion = "Xcode 3.2";
144 | developmentRegion = English;
145 | hasScannedForEncodings = 0;
146 | knownRegions = (
147 | en,
148 | Base,
149 | );
150 | mainGroup = E5EDE2351E859BB800904469;
151 | productRefGroup = E5EDE23F1E859BB800904469 /* Products */;
152 | projectDirPath = "";
153 | projectRoot = "";
154 | targets = (
155 | E5EDE23D1E859BB800904469 /* FNLiveReactions */,
156 | );
157 | };
158 | /* End PBXProject section */
159 |
160 | /* Begin PBXResourcesBuildPhase section */
161 | E5EDE23C1E859BB800904469 /* Resources */ = {
162 | isa = PBXResourcesBuildPhase;
163 | buildActionMask = 2147483647;
164 | files = (
165 | E5EDE24C1E859BB800904469 /* LaunchScreen.storyboard in Resources */,
166 | E5EDE2491E859BB800904469 /* Assets.xcassets in Resources */,
167 | E5EDE2471E859BB800904469 /* Main.storyboard in Resources */,
168 | );
169 | runOnlyForDeploymentPostprocessing = 0;
170 | };
171 | /* End PBXResourcesBuildPhase section */
172 |
173 | /* Begin PBXShellScriptBuildPhase section */
174 | 3338175DC328A57BD67B90FB /* [CP] Copy Pods Resources */ = {
175 | isa = PBXShellScriptBuildPhase;
176 | buildActionMask = 2147483647;
177 | files = (
178 | );
179 | inputPaths = (
180 | );
181 | name = "[CP] Copy Pods Resources";
182 | outputPaths = (
183 | );
184 | runOnlyForDeploymentPostprocessing = 0;
185 | shellPath = /bin/sh;
186 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-FNLiveReactions/Pods-FNLiveReactions-resources.sh\"\n";
187 | showEnvVarsInLog = 0;
188 | };
189 | 6721620D1A70E9ADAB89BD3A /* [CP] Check Pods Manifest.lock */ = {
190 | isa = PBXShellScriptBuildPhase;
191 | buildActionMask = 2147483647;
192 | files = (
193 | );
194 | inputPaths = (
195 | );
196 | name = "[CP] Check Pods Manifest.lock";
197 | outputPaths = (
198 | );
199 | runOnlyForDeploymentPostprocessing = 0;
200 | shellPath = /bin/sh;
201 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
202 | showEnvVarsInLog = 0;
203 | };
204 | C4A2FE78C3E271C4F62F1691 /* [CP] Embed Pods Frameworks */ = {
205 | isa = PBXShellScriptBuildPhase;
206 | buildActionMask = 2147483647;
207 | files = (
208 | );
209 | inputPaths = (
210 | );
211 | name = "[CP] Embed Pods Frameworks";
212 | outputPaths = (
213 | );
214 | runOnlyForDeploymentPostprocessing = 0;
215 | shellPath = /bin/sh;
216 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-FNLiveReactions/Pods-FNLiveReactions-frameworks.sh\"\n";
217 | showEnvVarsInLog = 0;
218 | };
219 | /* End PBXShellScriptBuildPhase section */
220 |
221 | /* Begin PBXSourcesBuildPhase section */
222 | E5EDE23A1E859BB800904469 /* Sources */ = {
223 | isa = PBXSourcesBuildPhase;
224 | buildActionMask = 2147483647;
225 | files = (
226 | E5EDE2441E859BB800904469 /* ViewController.swift in Sources */,
227 | E5EDE2421E859BB800904469 /* AppDelegate.swift in Sources */,
228 | E5EDE2551E85B3FF00904469 /* FNReactionsView.swift in Sources */,
229 | );
230 | runOnlyForDeploymentPostprocessing = 0;
231 | };
232 | /* End PBXSourcesBuildPhase section */
233 |
234 | /* Begin PBXVariantGroup section */
235 | E5EDE2451E859BB800904469 /* Main.storyboard */ = {
236 | isa = PBXVariantGroup;
237 | children = (
238 | E5EDE2461E859BB800904469 /* Base */,
239 | );
240 | name = Main.storyboard;
241 | sourceTree = "";
242 | };
243 | E5EDE24A1E859BB800904469 /* LaunchScreen.storyboard */ = {
244 | isa = PBXVariantGroup;
245 | children = (
246 | E5EDE24B1E859BB800904469 /* Base */,
247 | );
248 | name = LaunchScreen.storyboard;
249 | sourceTree = "";
250 | };
251 | /* End PBXVariantGroup section */
252 |
253 | /* Begin XCBuildConfiguration section */
254 | E5EDE24E1E859BB800904469 /* Debug */ = {
255 | isa = XCBuildConfiguration;
256 | buildSettings = {
257 | ALWAYS_SEARCH_USER_PATHS = NO;
258 | CLANG_ANALYZER_NONNULL = YES;
259 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
260 | CLANG_CXX_LIBRARY = "libc++";
261 | CLANG_ENABLE_MODULES = YES;
262 | CLANG_ENABLE_OBJC_ARC = YES;
263 | CLANG_WARN_BOOL_CONVERSION = YES;
264 | CLANG_WARN_CONSTANT_CONVERSION = YES;
265 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
266 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
267 | CLANG_WARN_EMPTY_BODY = YES;
268 | CLANG_WARN_ENUM_CONVERSION = YES;
269 | CLANG_WARN_INFINITE_RECURSION = YES;
270 | CLANG_WARN_INT_CONVERSION = YES;
271 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
272 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
273 | CLANG_WARN_UNREACHABLE_CODE = YES;
274 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
275 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
276 | COPY_PHASE_STRIP = NO;
277 | DEBUG_INFORMATION_FORMAT = dwarf;
278 | ENABLE_STRICT_OBJC_MSGSEND = YES;
279 | ENABLE_TESTABILITY = YES;
280 | GCC_C_LANGUAGE_STANDARD = gnu99;
281 | GCC_DYNAMIC_NO_PIC = NO;
282 | GCC_NO_COMMON_BLOCKS = YES;
283 | GCC_OPTIMIZATION_LEVEL = 0;
284 | GCC_PREPROCESSOR_DEFINITIONS = (
285 | "DEBUG=1",
286 | "$(inherited)",
287 | );
288 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
289 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
290 | GCC_WARN_UNDECLARED_SELECTOR = YES;
291 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
292 | GCC_WARN_UNUSED_FUNCTION = YES;
293 | GCC_WARN_UNUSED_VARIABLE = YES;
294 | IPHONEOS_DEPLOYMENT_TARGET = 10.2;
295 | MTL_ENABLE_DEBUG_INFO = YES;
296 | ONLY_ACTIVE_ARCH = YES;
297 | SDKROOT = iphoneos;
298 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
299 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
300 | TARGETED_DEVICE_FAMILY = "1,2";
301 | };
302 | name = Debug;
303 | };
304 | E5EDE24F1E859BB800904469 /* Release */ = {
305 | isa = XCBuildConfiguration;
306 | buildSettings = {
307 | ALWAYS_SEARCH_USER_PATHS = NO;
308 | CLANG_ANALYZER_NONNULL = YES;
309 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
310 | CLANG_CXX_LIBRARY = "libc++";
311 | CLANG_ENABLE_MODULES = YES;
312 | CLANG_ENABLE_OBJC_ARC = YES;
313 | CLANG_WARN_BOOL_CONVERSION = YES;
314 | CLANG_WARN_CONSTANT_CONVERSION = YES;
315 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
316 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
317 | CLANG_WARN_EMPTY_BODY = YES;
318 | CLANG_WARN_ENUM_CONVERSION = YES;
319 | CLANG_WARN_INFINITE_RECURSION = YES;
320 | CLANG_WARN_INT_CONVERSION = YES;
321 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
322 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
323 | CLANG_WARN_UNREACHABLE_CODE = YES;
324 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
325 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
326 | COPY_PHASE_STRIP = NO;
327 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
328 | ENABLE_NS_ASSERTIONS = NO;
329 | ENABLE_STRICT_OBJC_MSGSEND = YES;
330 | GCC_C_LANGUAGE_STANDARD = gnu99;
331 | GCC_NO_COMMON_BLOCKS = YES;
332 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
333 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
334 | GCC_WARN_UNDECLARED_SELECTOR = YES;
335 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
336 | GCC_WARN_UNUSED_FUNCTION = YES;
337 | GCC_WARN_UNUSED_VARIABLE = YES;
338 | IPHONEOS_DEPLOYMENT_TARGET = 10.2;
339 | MTL_ENABLE_DEBUG_INFO = NO;
340 | SDKROOT = iphoneos;
341 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
342 | TARGETED_DEVICE_FAMILY = "1,2";
343 | VALIDATE_PRODUCT = YES;
344 | };
345 | name = Release;
346 | };
347 | E5EDE2511E859BB800904469 /* Debug */ = {
348 | isa = XCBuildConfiguration;
349 | baseConfigurationReference = 303C9FCB6663007C596C5364 /* Pods-FNLiveReactions.debug.xcconfig */;
350 | buildSettings = {
351 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
352 | DEVELOPMENT_TEAM = C9W22UY94N;
353 | INFOPLIST_FILE = FNLiveReactions/Info.plist;
354 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
355 | PRODUCT_BUNDLE_IDENTIFIER = it.fabiosoft.FNLiveReactions;
356 | PRODUCT_NAME = "$(TARGET_NAME)";
357 | SWIFT_VERSION = 3.0;
358 | };
359 | name = Debug;
360 | };
361 | E5EDE2521E859BB800904469 /* Release */ = {
362 | isa = XCBuildConfiguration;
363 | baseConfigurationReference = D976C0F2ACAE1F9EE411D013 /* Pods-FNLiveReactions.release.xcconfig */;
364 | buildSettings = {
365 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
366 | DEVELOPMENT_TEAM = C9W22UY94N;
367 | INFOPLIST_FILE = FNLiveReactions/Info.plist;
368 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
369 | PRODUCT_BUNDLE_IDENTIFIER = it.fabiosoft.FNLiveReactions;
370 | PRODUCT_NAME = "$(TARGET_NAME)";
371 | SWIFT_VERSION = 3.0;
372 | };
373 | name = Release;
374 | };
375 | /* End XCBuildConfiguration section */
376 |
377 | /* Begin XCConfigurationList section */
378 | E5EDE2391E859BB800904469 /* Build configuration list for PBXProject "FNLiveReactions" */ = {
379 | isa = XCConfigurationList;
380 | buildConfigurations = (
381 | E5EDE24E1E859BB800904469 /* Debug */,
382 | E5EDE24F1E859BB800904469 /* Release */,
383 | );
384 | defaultConfigurationIsVisible = 0;
385 | defaultConfigurationName = Release;
386 | };
387 | E5EDE2501E859BB800904469 /* Build configuration list for PBXNativeTarget "FNLiveReactions" */ = {
388 | isa = XCConfigurationList;
389 | buildConfigurations = (
390 | E5EDE2511E859BB800904469 /* Debug */,
391 | E5EDE2521E859BB800904469 /* Release */,
392 | );
393 | defaultConfigurationIsVisible = 0;
394 | defaultConfigurationName = Release;
395 | };
396 | /* End XCConfigurationList section */
397 | };
398 | rootObject = E5EDE2361E859BB800904469 /* Project object */;
399 | }
400 |
--------------------------------------------------------------------------------