Showing preview only (246K chars total). Download the full file or copy to clipboard to get everything.
Repository: aleksandrshoshiashvili/AwesomeSpotlightView
Branch: master
Commit: 21767ad5187f
Files: 100
Total size: 212.1 KB
Directory structure:
gitextract_9pa15yrf/
├── .gitignore
├── .swiftpm/
│ └── xcode/
│ ├── package.xcworkspace/
│ │ ├── contents.xcworkspacedata
│ │ └── xcuserdata/
│ │ └── aleksandrsosiasvili.xcuserdatad/
│ │ └── UserInterfaceState.xcuserstate
│ └── xcuserdata/
│ └── aleksandrsosiasvili.xcuserdatad/
│ └── xcschemes/
│ └── xcschememanagement.plist
├── AwesomeSpotlightView/
│ └── Classes/
│ ├── AwesomeSpotlight.swift
│ ├── AwesomeSpotlightView.swift
│ ├── AwesomeSpotlightViewBundle.bundle/
│ │ ├── Localizable.plist
│ │ ├── en.lproj/
│ │ │ └── Localizable.plist
│ │ └── ru-RU.lproj/
│ │ ├── LaunchScreen.strings
│ │ ├── Localizable.plist
│ │ └── Main.strings
│ ├── AwesomeTabButton.swift
│ └── Localizator.swift
├── AwesomeSpotlightView.podspec
├── AwesomeSpotlightViewDemo/
│ ├── AwesomeSpotlightViewDemo/
│ │ ├── AppDelegate.swift
│ │ ├── Assets.xcassets/
│ │ │ ├── AppIcon.appiconset/
│ │ │ │ └── Contents.json
│ │ │ ├── Contents.json
│ │ │ └── spotlight.imageset/
│ │ │ └── Contents.json
│ │ ├── Base.lproj/
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── Main.storyboard
│ │ ├── Info.plist
│ │ └── ViewController.swift
│ └── AwesomeSpotlightViewDemo.xcodeproj/
│ ├── project.pbxproj
│ ├── project.xcworkspace/
│ │ ├── contents.xcworkspacedata
│ │ ├── xcshareddata/
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── swiftpm/
│ │ │ └── Package.resolved
│ │ └── xcuserdata/
│ │ ├── aleksandr.xcuserdatad/
│ │ │ └── UserInterfaceState.xcuserstate
│ │ ├── alex.shoshiashvili.xcuserdatad/
│ │ │ └── UserInterfaceState.xcuserstate
│ │ └── macbookpro.xcuserdatad/
│ │ └── UserInterfaceState.xcuserstate
│ └── xcuserdata/
│ ├── aleksandr.xcuserdatad/
│ │ ├── xcdebugger/
│ │ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes/
│ │ ├── AwesomeSpotlightViewDemo.xcscheme
│ │ └── xcschememanagement.plist
│ ├── aleksandrsosiasvili.xcuserdatad/
│ │ ├── xcdebugger/
│ │ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes/
│ │ └── xcschememanagement.plist
│ ├── alex.shoshiashvili.xcuserdatad/
│ │ ├── xcdebugger/
│ │ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes/
│ │ └── xcschememanagement.plist
│ └── macbookpro.xcuserdatad/
│ └── xcschemes/
│ ├── AwesomeSpotlightViewDemo.xcscheme
│ └── xcschememanagement.plist
├── AwesomeSpotlightViewDemoObjC/
│ ├── AwesomeSpotlightViewDemoObjC/
│ │ ├── AppDelegate.h
│ │ ├── AppDelegate.m
│ │ ├── Assets.xcassets/
│ │ │ ├── AppIcon.appiconset/
│ │ │ │ └── Contents.json
│ │ │ ├── Contents.json
│ │ │ └── spotlight.imageset/
│ │ │ └── Contents.json
│ │ ├── Base.lproj/
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── Main.storyboard
│ │ ├── Info.plist
│ │ ├── ViewController.h
│ │ ├── ViewController.m
│ │ └── main.m
│ ├── AwesomeSpotlightViewDemoObjC.xcodeproj/
│ │ ├── project.pbxproj
│ │ ├── project.xcworkspace/
│ │ │ ├── contents.xcworkspacedata
│ │ │ ├── xcshareddata/
│ │ │ │ └── IDEWorkspaceChecks.plist
│ │ │ └── xcuserdata/
│ │ │ └── alex.shoshiashvili.xcuserdatad/
│ │ │ └── UserInterfaceState.xcuserstate
│ │ └── xcuserdata/
│ │ └── alex.shoshiashvili.xcuserdatad/
│ │ └── xcschemes/
│ │ └── xcschememanagement.plist
│ ├── AwesomeSpotlightViewDemoObjC.xcworkspace/
│ │ ├── contents.xcworkspacedata
│ │ ├── xcshareddata/
│ │ │ └── IDEWorkspaceChecks.plist
│ │ └── xcuserdata/
│ │ └── alex.shoshiashvili.xcuserdatad/
│ │ └── UserInterfaceState.xcuserstate
│ ├── Podfile
│ └── Pods/
│ ├── AwesomeSpotlightView/
│ │ ├── AwesomeSpotlightView/
│ │ │ └── Classes/
│ │ │ ├── AwesomeSpotlight.swift
│ │ │ ├── AwesomeSpotlightView.swift
│ │ │ ├── AwesomeSpotlightViewBundle.bundle/
│ │ │ │ ├── Localizable.plist
│ │ │ │ ├── en.lproj/
│ │ │ │ │ └── Localizable.plist
│ │ │ │ └── ru-RU.lproj/
│ │ │ │ ├── LaunchScreen.strings
│ │ │ │ ├── Localizable.plist
│ │ │ │ └── Main.strings
│ │ │ ├── AwesomeTabButton.swift
│ │ │ └── Localizator.swift
│ │ ├── LICENSE
│ │ └── README.md
│ ├── Pods.xcodeproj/
│ │ ├── project.pbxproj
│ │ └── xcuserdata/
│ │ └── alex.shoshiashvili.xcuserdatad/
│ │ └── xcschemes/
│ │ ├── AwesomeSpotlightView.xcscheme
│ │ ├── Pods-AwesomeSpotlightViewDemoObjC.xcscheme
│ │ └── xcschememanagement.plist
│ └── Target Support Files/
│ ├── AwesomeSpotlightView/
│ │ ├── AwesomeSpotlightView-Info.plist
│ │ ├── AwesomeSpotlightView-dummy.m
│ │ ├── AwesomeSpotlightView-prefix.pch
│ │ ├── AwesomeSpotlightView-umbrella.h
│ │ ├── AwesomeSpotlightView.modulemap
│ │ └── AwesomeSpotlightView.xcconfig
│ └── Pods-AwesomeSpotlightViewDemoObjC/
│ ├── Pods-AwesomeSpotlightViewDemoObjC-Info.plist
│ ├── Pods-AwesomeSpotlightViewDemoObjC-acknowledgements.markdown
│ ├── Pods-AwesomeSpotlightViewDemoObjC-acknowledgements.plist
│ ├── Pods-AwesomeSpotlightViewDemoObjC-dummy.m
│ ├── Pods-AwesomeSpotlightViewDemoObjC-frameworks-Debug-input-files.xcfilelist
│ ├── Pods-AwesomeSpotlightViewDemoObjC-frameworks-Debug-output-files.xcfilelist
│ ├── Pods-AwesomeSpotlightViewDemoObjC-frameworks-Release-input-files.xcfilelist
│ ├── Pods-AwesomeSpotlightViewDemoObjC-frameworks-Release-output-files.xcfilelist
│ ├── Pods-AwesomeSpotlightViewDemoObjC-frameworks.sh
│ ├── Pods-AwesomeSpotlightViewDemoObjC-resources-Debug-input-files.xcfilelist
│ ├── Pods-AwesomeSpotlightViewDemoObjC-resources-Debug-output-files.xcfilelist
│ ├── Pods-AwesomeSpotlightViewDemoObjC-resources-Release-input-files.xcfilelist
│ ├── Pods-AwesomeSpotlightViewDemoObjC-resources-Release-output-files.xcfilelist
│ ├── Pods-AwesomeSpotlightViewDemoObjC-resources.sh
│ ├── Pods-AwesomeSpotlightViewDemoObjC-umbrella.h
│ ├── Pods-AwesomeSpotlightViewDemoObjC.debug.xcconfig
│ ├── Pods-AwesomeSpotlightViewDemoObjC.modulemap
│ └── Pods-AwesomeSpotlightViewDemoObjC.release.xcconfig
├── LICENSE
├── Package.swift
└── README.md
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/project.xcworkspace/xcuserdata/aleksandrsosiasvili.xcuserdatad/UserInterfaceState.xcuserstate
================================================
FILE: .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>
================================================
FILE: .swiftpm/xcode/xcuserdata/aleksandrsosiasvili.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>AwesomeSpotlightView.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>AwesomeSpotlightView</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
================================================
FILE: AwesomeSpotlightView/Classes/AwesomeSpotlight.swift
================================================
//
// AwesomeSpotlight.swift
// AwesomeSpotlightView
//
// Created by Alex Shoshiashvili on 24.02.17.
// Copyright © 2017 Alex Shoshiashvili. All rights reserved.
//
import UIKit
open class AwesomeSpotlight: NSObject {
@objc public enum AwesomeSpotlightShape : Int {
case rectangle
case roundRectangle
case circle
}
var rect = CGRect()
var shape : AwesomeSpotlightShape = .roundRectangle
var margin: UIEdgeInsets = .zero
var isAllowPassTouchesThroughSpotlight = false
private var text : String = ""
private var attributedText : NSAttributedString? = nil
private let zeroMargin: UIEdgeInsets = .zero
var showedText: NSAttributedString {
if let attrText = attributedText {
return attrText
} else {
return .init(string: text)
}
}
var rectValue : NSValue {
return .init(cgRect: rect)
}
@objc public init(
withRect rect: CGRect,
shape: AwesomeSpotlightShape,
text: String,
margin: UIEdgeInsets = .zero,
isAllowPassTouchesThroughSpotlight: Bool = false
) {
super.init()
self.rect = rect
self.shape = shape
self.text = text
self.margin = margin
self.isAllowPassTouchesThroughSpotlight = isAllowPassTouchesThroughSpotlight
}
@objc public init(
withRect rect: CGRect,
shape: AwesomeSpotlightShape,
attributedText: NSAttributedString,
margin: UIEdgeInsets = .zero,
isAllowPassTouchesThroughSpotlight: Bool = false
) {
super.init()
self.rect = rect
self.shape = shape
self.attributedText = attributedText
self.margin = margin
self.isAllowPassTouchesThroughSpotlight = isAllowPassTouchesThroughSpotlight
}
convenience override public init() {
self.init(withRect: .init(), shape: .roundRectangle, text: "", margin: .init())
}
}
================================================
FILE: AwesomeSpotlightView/Classes/AwesomeSpotlightView.swift
================================================
//
// AwesomeSpotlightView.swift
// AwesomeSpotlightView
//
// Created by Alex Shoshiashvili on 24.02.17.
// Copyright © 2017 Alex Shoshiashvili. All rights reserved.
//
import UIKit
// MARK: - AwesomeSpotlightViewDelegate
@objc public protocol AwesomeSpotlightViewDelegate: AnyObject {
@objc optional func spotlightView(_ spotlightView: AwesomeSpotlightView, willNavigateToIndex index: Int)
@objc optional func spotlightView(_ spotlightView: AwesomeSpotlightView, didNavigateToIndex index: Int)
@objc optional func spotlightViewWillCleanup(_ spotlightView: AwesomeSpotlightView, atIndex index: Int)
@objc optional func spotlightViewDidCleanup(_ spotlightView: AwesomeSpotlightView)
}
@objcMembers
public class AwesomeSpotlightView: UIView {
public weak var delegate: AwesomeSpotlightViewDelegate?
// MARK: - private variables
private static let kAnimationDuration = 0.3
private static let kCutoutRadius: CGFloat = 4.0
private static let kMaxLabelWidth = 280.0
private static let kMaxLabelSpacing: CGFloat = 35.0
private static let kEnableContinueLabel = false
private static let kEnableSkipButton = false
private static let kEnableArrowDown = false
private static let kShowAllSpotlightsAtOnce = false
private static let kTextLabelFont = UIFont.systemFont(ofSize: 20.0)
private static let kContinueLabelFont = UIFont.systemFont(ofSize: 13.0)
private static let kSkipButtonFont = UIFont.boldSystemFont(ofSize: 13.0)
private static let kSkipButtonLastStepTitle = "Done".localized
private var spotlightMask = CAShapeLayer()
private var arrowDownImageView = UIImageView()
private var arrowDownSize = CGSize(width: 12, height: 18)
private var delayTime: TimeInterval = 0.35
private var hitTestPoints: [CGPoint] = []
// MARK: - public variables
public var spotlightsArray: [AwesomeSpotlight] = []
public var textLabel = UILabel()
public var continueLabel = UILabel()
public var skipSpotlightButton = UIButton()
public var animationDuration = kAnimationDuration
public var cutoutRadius: CGFloat = kCutoutRadius
public var maxLabelWidth = kMaxLabelWidth
public var labelSpacing: CGFloat = kMaxLabelSpacing
public var enableArrowDown = kEnableArrowDown
public var showAllSpotlightsAtOnce = kShowAllSpotlightsAtOnce
public var continueButtonModel = AwesomeTabButton(
title: "Continue".localized,
font: kContinueLabelFont,
isEnable: kEnableContinueLabel
)
public var skipButtonModel = AwesomeTabButton(
title: "Skip".localized,
font: kSkipButtonFont,
isEnable: kEnableSkipButton
)
public var skipButtonLastStepTitle = kSkipButtonLastStepTitle
public var spotlightMaskColor = UIColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.6) {
didSet {
spotlightMask.fillColor = spotlightMaskColor.cgColor
}
}
public var textLabelFont = kTextLabelFont {
didSet {
textLabel.font = textLabelFont
}
}
public var isShowed: Bool {
return currentIndex != 0
}
public var currentIndex = 0
// MARK: - Initializers
override public init(frame: CGRect) {
super.init(frame: frame)
}
convenience public init(frame: CGRect, spotlight: [AwesomeSpotlight]) {
self.init(frame: frame)
self.spotlightsArray = spotlight
self.setup()
}
required public init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
// MARK: - Setup
private func setup() {
setupMask()
setupTouches()
setupTextLabel()
setupArrowDown()
isHidden = true
}
private func setupMask() {
spotlightMask.fillRule = .evenOdd
spotlightMask.fillColor = spotlightMaskColor.cgColor
layer.addSublayer(spotlightMask)
}
private func setupTouches() {
let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(userDidTap))
addGestureRecognizer(tapGestureRecognizer)
}
private func setupTextLabel() {
let textLabelRect = CGRect(x: 0, y: 0, width: maxLabelWidth, height: 0)
textLabel = UILabel(frame: textLabelRect)
textLabel.backgroundColor = .clear
textLabel.textColor = .white
textLabel.font = textLabelFont
textLabel.lineBreakMode = .byWordWrapping
textLabel.numberOfLines = 0
textLabel.textAlignment = .center
textLabel.alpha = 0
addSubview(textLabel)
}
private func setupArrowDown() {
let arrowDownIconName = "arrowDownIcon"
if let bundlePath = Bundle.main.path(forResource: "AwesomeSpotlightViewBundle", ofType: "bundle") {
if let _ = Bundle(path: bundlePath)?.path(forResource: arrowDownIconName, ofType: "png") {
let arrowDownImage = UIImage(named: arrowDownIconName, in: Bundle(path: bundlePath), compatibleWith: nil)
arrowDownImageView = UIImageView(image: arrowDownImage)
arrowDownImageView.alpha = 0
addSubview(arrowDownImageView)
}
}
}
private func setupContinueLabel() {
let continueLabelWidth = skipButtonModel.isEnable ? 0.7 * bounds.size.width : bounds.size.width
let continueLabelHeight: CGFloat = 30.0
if #available(iOS 11.0, *) {
continueLabel = UILabel(
frame: CGRect(
x: 0,
y: bounds.size.height - continueLabelHeight - safeAreaInsets.bottom,
width: continueLabelWidth,
height: continueLabelHeight
)
)
} else {
continueLabel = UILabel(
frame: CGRect(
x: 0,
y: bounds.size.height - continueLabelHeight,
width: continueLabelWidth,
height: continueLabelHeight
)
)
}
continueLabel.font = continueButtonModel.font
continueLabel.textAlignment = .center
continueLabel.text = continueButtonModel.title
continueLabel.alpha = 0
continueLabel.backgroundColor = continueButtonModel.backgroundColor ?? .white
addSubview(continueLabel)
}
private func setupSkipSpotlightButton() {
let continueLabelWidth = 0.7 * bounds.size.width
let skipSpotlightButtonWidth = bounds.size.width - continueLabelWidth
let skipSpotlightButtonHeight: CGFloat = 30.0
if #available(iOS 11.0, *) {
skipSpotlightButton = UIButton(
frame: CGRect(
x: continueLabelWidth,
y: bounds.size.height - skipSpotlightButtonHeight - safeAreaInsets.bottom,
width: skipSpotlightButtonWidth,
height: skipSpotlightButtonHeight
)
)
} else {
skipSpotlightButton = UIButton(
frame: CGRect(
x: continueLabelWidth,
y: bounds.size.height - skipSpotlightButtonHeight,
width: skipSpotlightButtonWidth,
height: skipSpotlightButtonHeight
)
)
}
skipSpotlightButton.addTarget(self, action: #selector(skipSpotlight), for: .touchUpInside)
skipSpotlightButton.setTitle(skipButtonModel.title, for: [])
skipSpotlightButton.titleLabel?.font = skipButtonModel.font
skipSpotlightButton.alpha = 0
skipSpotlightButton.tintColor = .white
skipSpotlightButton.backgroundColor = skipButtonModel.backgroundColor ?? .clear
addSubview(skipSpotlightButton)
}
// MARK: - Touches
@objc func userDidTap(_ recognizer: UITapGestureRecognizer) {
goToSpotlightAtIndex(index: currentIndex + 1)
}
override public func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
let view = super.hitTest(point, with: event)
let localPoint = convert(point, from: self)
hitTestPoints.append(localPoint)
guard currentIndex < spotlightsArray.count else {
return view
}
let currentSpotlight = spotlightsArray[currentIndex]
if currentSpotlight.rect.contains(localPoint), currentSpotlight.isAllowPassTouchesThroughSpotlight {
if hitTestPoints.filter({ $0 == localPoint }).count == 1 {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.15, execute: {
self.cleanup()
})
}
return nil
}
return view
}
// MARK: - Presenter
public func start() {
start(fromIndex: 0)
}
public func start(fromIndex index: Int) {
alpha = 0
isHidden = false
textLabel.font = textLabelFont
UIView.animate(withDuration: animationDuration, animations: {
self.alpha = 1
}) { (finished) in
self.goToSpotlightAtIndex(index: index)
}
}
// MARK: - Private
private func goToSpotlightAtIndex(index: Int) {
if index >= spotlightsArray.count {
cleanup()
} else if showAllSpotlightsAtOnce {
showSpotlightsAllAtOnce()
} else {
showSpotlightAtIndex(index: index)
}
}
private func showSpotlightsAllAtOnce() {
if let firstSpotlight = spotlightsArray.first {
continueButtonModel.isEnable = false
skipButtonModel.isEnable = false
setCutoutToSpotlight(spotlight: firstSpotlight)
animateCutoutToSpotlights(spotlights: spotlightsArray)
currentIndex = spotlightsArray.count
}
}
private func showSpotlightAtIndex(index: Int) {
currentIndex = index
let currentSpotlight = spotlightsArray[index]
delegate?.spotlightView?(self, willNavigateToIndex: index)
showTextLabel(spotlight: currentSpotlight)
showArrowIfNeeded(spotlight: currentSpotlight)
if currentIndex == 0 {
setCutoutToSpotlight(spotlight: currentSpotlight)
}
animateCutoutToSpotlight(spotlight: currentSpotlight)
showContinueLabelIfNeeded(index: index)
showSkipButtonIfNeeded(index: index)
}
private func showArrowIfNeeded(spotlight: AwesomeSpotlight) {
if enableArrowDown {
let arrowImageOrigin = CGPoint(
x: spotlight.rect.origin.x + spotlight.rect.width / 2.0 - arrowDownSize.width / 2.0,
y: spotlight.rect.origin.y - arrowDownSize.height * 2
)
arrowDownImageView.frame = .init(
origin: arrowImageOrigin,
size: arrowDownSize
)
UIView.animate(withDuration: animationDuration, animations: {
self.arrowDownImageView.alpha = 1
})
}
}
private func showTextLabel(spotlight: AwesomeSpotlight) {
textLabel.alpha = 0
calculateTextPositionAndSizeWithSpotlight(spotlight: spotlight)
UIView.animate(withDuration: animationDuration) {
self.textLabel.alpha = 1
}
}
private func showContinueLabelIfNeeded(index: Int) {
if continueButtonModel.isEnable {
if index == 0 {
setupContinueLabel()
UIView.animate(withDuration: animationDuration, delay: delayTime, options: .curveLinear, animations: {
self.continueLabel.alpha = 1
})
} else if index >= spotlightsArray.count - 1 && continueLabel.alpha != 0 {
continueLabel.alpha = 0
continueLabel.removeFromSuperview()
}
}
}
private func showSkipButtonIfNeeded(index: Int) {
if skipButtonModel.isEnable && index == 0 {
setupSkipSpotlightButton()
UIView.animate(withDuration: animationDuration, delay: delayTime, options: .curveLinear, animations: {
self.skipSpotlightButton.alpha = 1
})
} else if skipSpotlightButton.isEnabled && index == spotlightsArray.count - 1 {
skipSpotlightButton.setTitle(skipButtonLastStepTitle, for: .normal)
}
}
@objc func skipSpotlight() {
goToSpotlightAtIndex(index: spotlightsArray.count)
}
private func skipAllSpotlights() {
goToSpotlightAtIndex(index: spotlightsArray.count)
}
// MARK: Helper
private func calculateRectWithMarginForSpotlight(_ spotlight: AwesomeSpotlight) -> CGRect {
var rect = spotlight.rect
rect.size.width += spotlight.margin.left + spotlight.margin.right
rect.size.height += spotlight.margin.bottom + spotlight.margin.top
rect.origin.x = rect.origin.x - (spotlight.margin.left + spotlight.margin.right) / 2.0
rect.origin.y = rect.origin.y - (spotlight.margin.top + spotlight.margin.bottom) / 2.0
return rect
}
private func calculateTextPositionAndSizeWithSpotlight(spotlight: AwesomeSpotlight) {
textLabel.frame = CGRect(x: 0, y: 0, width: maxLabelWidth, height: 0)
textLabel.attributedText = spotlight.showedText
if enableArrowDown && currentIndex == 0 {
labelSpacing += 18
}
textLabel.sizeToFit()
let rect = calculateRectWithMarginForSpotlight(spotlight)
var y = rect.origin.y + rect.size.height + labelSpacing
let bottomY = y + textLabel.frame.size.height + labelSpacing
if bottomY > bounds.size.height {
y = rect.origin.y - labelSpacing - textLabel.frame.size.height
}
let x : CGFloat = CGFloat(floor(bounds.size.width - textLabel.frame.size.width) / 2.0)
textLabel.frame = CGRect(origin: CGPoint(x: x, y: y), size: textLabel.frame.size)
}
// MARK: - Cutout and Animate
private func cutoutToSpotlight(spotlight: AwesomeSpotlight, isFirst : Bool = false) -> UIBezierPath {
var rect = calculateRectWithMarginForSpotlight(spotlight)
if isFirst {
let x = floor(spotlight.rect.origin.x + (spotlight.rect.size.width / 2.0))
let y = floor(spotlight.rect.origin.y + (spotlight.rect.size.height / 2.0))
let center = CGPoint(x: x, y: y)
rect = CGRect(origin: center, size: .zero)
}
let spotlightPath = UIBezierPath(rect: bounds)
var cutoutPath = UIBezierPath()
switch spotlight.shape {
case .rectangle:
cutoutPath = UIBezierPath(rect: rect)
case .roundRectangle:
cutoutPath = UIBezierPath(roundedRect: rect, cornerRadius: cutoutRadius)
case .circle:
cutoutPath = UIBezierPath(ovalIn: rect)
}
spotlightPath.append(cutoutPath)
return spotlightPath
}
private func cutoutToSpotlightCGPath(spotlight: AwesomeSpotlight, isFirst : Bool = false) -> CGPath {
return cutoutToSpotlight(spotlight: spotlight, isFirst: isFirst).cgPath
}
private func setCutoutToSpotlight(spotlight: AwesomeSpotlight) {
spotlightMask.path = cutoutToSpotlightCGPath(spotlight: spotlight, isFirst: true)
}
private func animateCutoutToSpotlight(spotlight: AwesomeSpotlight) {
let path = cutoutToSpotlightCGPath(spotlight: spotlight)
animateCutoutWithPath(path: path)
}
private func animateCutoutToSpotlights(spotlights: [AwesomeSpotlight]) {
let spotlightPath = UIBezierPath(rect: bounds)
for spotlight in spotlights {
var cutoutPath = UIBezierPath()
switch spotlight.shape {
case .rectangle:
cutoutPath = UIBezierPath(rect: spotlight.rect)
case .roundRectangle:
cutoutPath = UIBezierPath(roundedRect: spotlight.rect, cornerRadius: cutoutRadius)
case .circle:
cutoutPath = UIBezierPath(ovalIn: spotlight.rect)
}
spotlightPath.append(cutoutPath)
}
animateCutoutWithPath(path: spotlightPath.cgPath)
}
private func animateCutoutWithPath(path: CGPath) {
let animationKeyPath = "path"
let animation = CABasicAnimation(keyPath: animationKeyPath)
animation.delegate = self
animation.timingFunction = CAMediaTimingFunction(name: .easeOut)
animation.duration = animationDuration
animation.isRemovedOnCompletion = false
animation.fillMode = .forwards
animation.fromValue = spotlightMask.path
animation.toValue = path
spotlightMask.add(animation, forKey: animationKeyPath)
spotlightMask.path = path
}
// MARK: - Cleanup
private func cleanup() {
delegate?.spotlightViewWillCleanup?(self, atIndex: currentIndex)
UIView.animate(withDuration: animationDuration, animations: {
self.alpha = 0
}) { (finished) in
if finished {
self.removeFromSuperview()
self.currentIndex = 0
self.textLabel.alpha = 0
self.continueLabel.alpha = 0
self.skipSpotlightButton.alpha = 0
self.hitTestPoints = []
self.delegate?.spotlightViewDidCleanup?(self)
}
}
}
// MARK: - Objective-C Support Function
// Objective-C provides support function because it does not correspond to struct
public func setContinueButtonEnable(_ isEnable:Bool) {
self.continueButtonModel.isEnable = isEnable
}
public func setSkipButtonEnable(_ isEnable:Bool) {
self.skipButtonModel.isEnable = isEnable
}
}
extension AwesomeSpotlightView: CAAnimationDelegate {
public func animationDidStop(_ anim: CAAnimation, finished flag: Bool) {
delegate?.spotlightView?(self, didNavigateToIndex: currentIndex)
}
}
================================================
FILE: AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/Localizable.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>Buttons</key>
<dict>
<key>Done</key>
<dict>
<key>value</key>
<string>Done</string>
<key>comment</key>
<string>skip last step button</string>
</dict>
<key>Continue</key>
<dict>
<key>value</key>
<string>Tap to continue</string>
<key>comment</key>
<string>continue button</string>
</dict>
<key>Skip</key>
<dict>
<key>value</key>
<string>Skip</string>
<key>comment</key>
<string>skip button</string>
</dict>
</dict>
</dict>
</plist>
================================================
FILE: AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/en.lproj/Localizable.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>Buttons</key>
<dict>
<key>Done</key>
<dict>
<key>value</key>
<string>Done</string>
<key>comment</key>
<string>skip last step button</string>
</dict>
<key>Continue</key>
<dict>
<key>value</key>
<string>Tap to continue</string>
<key>comment</key>
<string>continue button</string>
</dict>
<key>Skip</key>
<dict>
<key>value</key>
<string>Skip</string>
<key>comment</key>
<string>skip button</string>
</dict>
</dict>
</dict>
</plist>
================================================
FILE: AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/ru-RU.lproj/LaunchScreen.strings
================================================
================================================
FILE: AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/ru-RU.lproj/Localizable.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>Buttons</key>
<dict>
<key>Done</key>
<dict>
<key>value</key>
<string>Закрыть</string>
<key>comment</key>
<string>skip last step button</string>
</dict>
<key>Continue</key>
<dict>
<key>value</key>
<string>Далее</string>
<key>comment</key>
<string>continue button</string>
</dict>
<key>Skip</key>
<dict>
<key>value</key>
<string>Пропустить</string>
<key>comment</key>
<string>skip button</string>
</dict>
</dict>
</dict>
</plist>
================================================
FILE: AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/ru-RU.lproj/Main.strings
================================================
/* Class = "UIButton"; normalTitle = "Button"; ObjectID = "01d-Is-qNO"; */
"01d-Is-qNO.normalTitle" = "Button";
/* Class = "UIButton"; normalTitle = "ASDoadoASD"; ObjectID = "4bI-ez-zXA"; */
"4bI-ez-zXA.normalTitle" = "ASDoadoASD";
================================================
FILE: AwesomeSpotlightView/Classes/AwesomeTabButton.swift
================================================
//
// AwesomeTabButton.swift
// AwesomeSpotlightViewDemo
//
// Created by Alexander Shoshiashvili on 11/02/2018.
// Copyright © 2018 Alex Shoshiashvili. All rights reserved.
//
import UIKit
public struct AwesomeTabButton {
public var title: String
public var font: UIFont
public var isEnable: Bool
public var backgroundColor: UIColor?
public init(title: String, font: UIFont, isEnable: Bool = true, backgroundColor: UIColor? = nil) {
self.title = title
self.font = font
self.isEnable = isEnable
self.backgroundColor = backgroundColor
}
}
================================================
FILE: AwesomeSpotlightView/Classes/Localizator.swift
================================================
//
// Localizator.swift
// AwesomeSpotlightView
//
// Created by David Cordero
// Update by Alex Shoshiashvili
// https://medium.com/@dcordero/a-different-way-to-deal-with-localized-strings-in-swift-3ea0da4cd143#.b863b9n1q
import Foundation
private class Localizator {
static let sharedInstance = Localizator()
private struct Constants {
static let bundleResourceName = "AwesomeSpotlightViewBundle"
static let bundleResourceType = "bundle"
static let localisationResourceName = "Localizable"
static let localisationResourceType = "plist"
static let buttonLocalisationKey = "Buttons"
}
private init() {}
lazy var localizableDictionary: NSDictionary! = {
let resourceBundle: Bundle
#if SWIFT_PACKAGE
resourceBundle = Bundle.module
#else
resourceBundle = Bundle(for: AwesomeSpotlightView.self)
#endif
if
let bundlePath = resourceBundle.path(
forResource: Constants.bundleResourceName,
ofType: Constants.bundleResourceType
),
let path = Bundle(path: bundlePath)?.path(
forResource: Constants.localisationResourceName,
ofType: Constants.localisationResourceType
) {
return NSDictionary(contentsOfFile: path)
}
fatalError("Localizable file NOT found")
}()
func localize(string: String) -> String {
guard let localizedString = ((localizableDictionary.value(forKey: Constants.buttonLocalisationKey) as AnyObject).value(forKey: string) as AnyObject).value(forKey: "value") as? String else {
assertionFailure("Missing translation for: \(string)")
return ""
}
return localizedString
}
}
extension String {
var localized: String {
return Localizator.sharedInstance.localize(string: self)
}
}
================================================
FILE: AwesomeSpotlightView.podspec
================================================
#
# Be sure to run `pod spec lint AwesomeSpotlightView.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#
Pod::Spec.new do |s|
s.name = 'AwesomeSpotlightView'
s.version = '0.1.15'
s.summary = 'Awesome tool for create tutorial or education/coach tour'
s.description = <<-DESC
AwesomeSpotlightView is a nice and simple library for iOS. It's highly customizable and easy-to-use tool. Works perfectly for any tutorial or education in your app.
DESC
s.homepage = 'https://github.com/aleksandrshoshiashvili/AwesomeSpotlightView'
s.screenshots = 'https://camo.githubusercontent.com/c6e4c54f8baa8c55283e027711a98e0cd72964ab/68747470733a2f2f70702e766b2e6d652f633630343732302f763630343732303838382f33373831332f6f7334417a4f52454241592e6a7067'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'aleksandrshoshishvili' => 'aleksandr.shoshishvili@gmail.com' }
s.platform = :ios, '9.0'
s.source_files = 'AwesomeSpotlightView/Classes/*'
s.resource = "AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle"
s.source = { :git => 'https://github.com/aleksandrshoshiashvili/AwesomeSpotlightView', :tag => s.version.to_s }
s.framework = 'UIKit', 'Foundation'
s.swift_version = '5.0'
end
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo/AppDelegate.swift
================================================
//
// AppDelegate.swift
// AwesomeSpotlightViewDemo
//
// Created by Alex Shoshiashvili on 27.02.17.
// Copyright © 2017 Alex Shoshiashvili. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
return true
}
}
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo/Assets.xcassets/AppIcon.appiconset/Contents.json
================================================
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"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"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo/Assets.xcassets/Contents.json
================================================
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo/Assets.xcassets/spotlight.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "spotlight.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo/Base.lproj/LaunchScreen.storyboard
================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11762" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="aed-73-axf">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="8Uf-CL-Qc9">
<objects>
<viewController id="aed-73-axf" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="hdJ-rO-TbP"/>
<viewControllerLayoutGuide type="bottom" id="H11-ha-gum"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="uFT-Ub-r8B">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="AwesomeSpotlightView" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumScaleFactor="0.5" translatesAutoresizingMaskIntoConstraints="NO" id="fCe-O4-c9u">
<rect key="frame" x="74" y="309" width="285" height="50"/>
<fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="26"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="spotlight" translatesAutoresizingMaskIntoConstraints="NO" id="41H-fZ-woL">
<rect key="frame" x="16" y="309" width="50" height="50"/>
<constraints>
<constraint firstAttribute="width" constant="50" id="UWK-Ho-a5a"/>
<constraint firstAttribute="height" constant="50" id="uw3-56-GWB"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" red="0.37647058820000001" green="0.43137254899999999" blue="0.69411764710000001" alpha="0.65899268619999996" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="41H-fZ-woL" firstAttribute="leading" secondItem="uFT-Ub-r8B" secondAttribute="leadingMargin" id="6Se-9X-TCi"/>
<constraint firstItem="41H-fZ-woL" firstAttribute="top" secondItem="fCe-O4-c9u" secondAttribute="top" id="DDa-zX-s97"/>
<constraint firstItem="fCe-O4-c9u" firstAttribute="leading" secondItem="41H-fZ-woL" secondAttribute="trailing" constant="8" symbolic="YES" id="FQ1-LW-WRz"/>
<constraint firstItem="41H-fZ-woL" firstAttribute="bottom" secondItem="fCe-O4-c9u" secondAttribute="bottom" id="mA5-8w-4wQ"/>
<constraint firstItem="fCe-O4-c9u" firstAttribute="trailing" secondItem="uFT-Ub-r8B" secondAttribute="trailingMargin" id="v1x-MM-dvn"/>
<constraint firstItem="41H-fZ-woL" firstAttribute="centerY" secondItem="uFT-Ub-r8B" secondAttribute="centerY" id="xrk-0O-D8h"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="73f-Ks-2vT" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="52" y="374.66266866566718"/>
</scene>
</scenes>
<resources>
<image name="spotlight" width="96" height="96"/>
</resources>
</document>
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo/Base.lproj/Main.storyboard
================================================
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="gKI-C3-xRf">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<customFonts key="customFonts">
<array key="HelveticaNeue.ttc">
<string>HelveticaNeue</string>
</array>
</customFonts>
<scenes>
<!--View Controller-->
<scene sceneID="xKb-zV-8UK">
<objects>
<viewController id="gKI-C3-xRf" customClass="ViewController" customModule="AwesomeSpotlightViewDemo" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="i1l-sw-uCR"/>
<viewControllerLayoutGuide type="bottom" id="m1h-1b-hKP"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="BsT-ko-Nfa">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="AwesomeSpotlightView" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumScaleFactor="0.5" translatesAutoresizingMaskIntoConstraints="NO" id="mpU-cS-2tM">
<rect key="frame" x="74" y="309" width="285" height="50"/>
<fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="26"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="spotlight" translatesAutoresizingMaskIntoConstraints="NO" id="h6i-Aa-otb">
<rect key="frame" x="16" y="309" width="50" height="50"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="A01-UX-wBh"/>
<constraint firstAttribute="width" constant="50" id="Y1H-pK-FcN"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="g2A-Yc-7kF">
<rect key="frame" x="16" y="509" width="343" height="50"/>
<color key="backgroundColor" red="0.2060487449" green="0.26086249160000002" blue="0.61514008620000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="cxA-Hg-MZ1"/>
</constraints>
<state key="normal" title="Show with continue and skip buttons">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="handleShowWithContinueAndSkipAction:" destination="gKI-C3-xRf" eventType="touchUpInside" id="EDE-8L-S61"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="djy-fq-szD">
<rect key="frame" x="16" y="567" width="343" height="50"/>
<color key="backgroundColor" red="0.2060487449" green="0.26086249160000002" blue="0.61514008620000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="KjZ-0m-ivb"/>
</constraints>
<state key="normal" title="Show all at once">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="handleShowAllAtOnceAction:" destination="gKI-C3-xRf" eventType="touchUpInside" id="I2K-xj-6N9"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="arz-8h-WIn">
<rect key="frame" x="16" y="451" width="343" height="50"/>
<color key="backgroundColor" red="0.2060487449" green="0.26086249160000002" blue="0.61514008620000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="mAT-gA-jHf"/>
</constraints>
<state key="normal" title="Show">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="handleShowAction:" destination="gKI-C3-xRf" eventType="touchUpInside" id="2v1-G4-RQw"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" red="0.37647058820000001" green="0.43137254899999999" blue="0.69411764710000001" alpha="0.65899268619999996" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="g2A-Yc-7kF" firstAttribute="trailing" secondItem="BsT-ko-Nfa" secondAttribute="trailingMargin" id="1Du-9f-kUe"/>
<constraint firstItem="arz-8h-WIn" firstAttribute="leading" secondItem="g2A-Yc-7kF" secondAttribute="leading" id="2oN-KL-r70"/>
<constraint firstItem="h6i-Aa-otb" firstAttribute="centerY" secondItem="BsT-ko-Nfa" secondAttribute="centerY" id="4xf-rE-9Zb"/>
<constraint firstItem="djy-fq-szD" firstAttribute="trailing" secondItem="BsT-ko-Nfa" secondAttribute="trailingMargin" id="CF2-Ku-Y9w"/>
<constraint firstItem="djy-fq-szD" firstAttribute="top" secondItem="g2A-Yc-7kF" secondAttribute="bottom" constant="8" symbolic="YES" id="ENy-CK-Juv"/>
<constraint firstItem="mpU-cS-2tM" firstAttribute="trailing" secondItem="BsT-ko-Nfa" secondAttribute="trailingMargin" id="G1g-VE-fmp"/>
<constraint firstItem="mpU-cS-2tM" firstAttribute="leading" secondItem="h6i-Aa-otb" secondAttribute="trailing" constant="8" symbolic="YES" id="NWt-ve-pkt"/>
<constraint firstItem="h6i-Aa-otb" firstAttribute="top" secondItem="mpU-cS-2tM" secondAttribute="top" id="OoV-bP-7R7"/>
<constraint firstItem="h6i-Aa-otb" firstAttribute="leading" secondItem="BsT-ko-Nfa" secondAttribute="leadingMargin" id="PoG-Y5-69T"/>
<constraint firstAttribute="bottom" secondItem="djy-fq-szD" secondAttribute="bottom" constant="50" id="QCZ-X3-jg2"/>
<constraint firstItem="g2A-Yc-7kF" firstAttribute="top" secondItem="arz-8h-WIn" secondAttribute="bottom" constant="8" symbolic="YES" id="UVy-re-kUP"/>
<constraint firstItem="arz-8h-WIn" firstAttribute="trailing" secondItem="g2A-Yc-7kF" secondAttribute="trailing" id="VbQ-JC-QVN"/>
<constraint firstItem="djy-fq-szD" firstAttribute="leading" secondItem="BsT-ko-Nfa" secondAttribute="leadingMargin" id="XzK-tZ-fcb"/>
<constraint firstItem="arz-8h-WIn" firstAttribute="centerX" secondItem="BsT-ko-Nfa" secondAttribute="centerX" id="dgh-Gy-RTi"/>
<constraint firstItem="g2A-Yc-7kF" firstAttribute="leading" secondItem="BsT-ko-Nfa" secondAttribute="leadingMargin" id="htz-YT-WZI"/>
<constraint firstItem="arz-8h-WIn" firstAttribute="trailing" secondItem="BsT-ko-Nfa" secondAttribute="trailingMargin" id="kq7-bD-ttV"/>
<constraint firstItem="arz-8h-WIn" firstAttribute="leading" secondItem="BsT-ko-Nfa" secondAttribute="leadingMargin" id="tJV-xX-ANZ"/>
<constraint firstItem="g2A-Yc-7kF" firstAttribute="trailing" secondItem="djy-fq-szD" secondAttribute="trailing" id="vlg-EK-2ng"/>
<constraint firstItem="g2A-Yc-7kF" firstAttribute="leading" secondItem="djy-fq-szD" secondAttribute="leading" id="whC-uD-QD5"/>
<constraint firstItem="h6i-Aa-otb" firstAttribute="bottom" secondItem="mpU-cS-2tM" secondAttribute="bottom" id="zmb-Ux-25m"/>
</constraints>
</view>
<connections>
<outlet property="logoImageView" destination="h6i-Aa-otb" id="ddH-NF-iic"/>
<outlet property="nameLabel" destination="mpU-cS-2tM" id="F8p-jq-WK3"/>
<outlet property="showAllAtOnceButton" destination="djy-fq-szD" id="0Q3-Pn-1iB"/>
<outlet property="showButton" destination="arz-8h-WIn" id="56I-ua-Nrg"/>
<outlet property="showWithContinueAndSkipButton" destination="g2A-Yc-7kF" id="u7m-9s-KFO"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="2Ps-d5-Y9E" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="136.80000000000001" y="138.98050974512745"/>
</scene>
</scenes>
<resources>
<image name="spotlight" width="96" height="96"/>
</resources>
</document>
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo/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>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>
</array>
</dict>
</plist>
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo/ViewController.swift
================================================
//
// ViewController.swift
// AwesomeSpotlightView
//
// Created by Alex Shoshiashvili on 24.02.17.
// Copyright © 2017 Alex Shoshiashvili. All rights reserved.
//
import UIKit
import AwesomeSpotlightView
class ViewController: UIViewController {
@IBOutlet weak var logoImageView: UIImageView!
@IBOutlet weak var nameLabel: UILabel!
@IBOutlet weak var showButton: UIButton!
@IBOutlet weak var showWithContinueAndSkipButton: UIButton!
@IBOutlet weak var showAllAtOnceButton: UIButton!
var spotlightView = AwesomeSpotlightView()
override func viewDidLoad() {
super.viewDidLoad()
setupViews()
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
setupSpotlight()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
func setupViews() {
showButton.layer.cornerRadius = 8.0
showButton.clipsToBounds = true
showWithContinueAndSkipButton.layer.cornerRadius = 8.0
showWithContinueAndSkipButton.clipsToBounds = true
showAllAtOnceButton.layer.cornerRadius = 8.0
showAllAtOnceButton.clipsToBounds = true
}
func setupSpotlight() {
let logoImageViewSpotlightRect = CGRect(x: logoImageView.frame.origin.x, y: logoImageView.frame.origin.y, width: logoImageView.frame.size.width, height: logoImageView.frame.size.height)
let logoImageViewSpotlightMargin = UIEdgeInsets(top: 20, left: 20, bottom: 20, right: 20)
let logoImageViewSpotlight = AwesomeSpotlight(withRect: logoImageViewSpotlightRect, shape: .circle, text: "logoImageViewSpotlight", margin: logoImageViewSpotlightMargin)
let nameLabelSpotlight = AwesomeSpotlight(withRect: nameLabel.frame, shape: .rectangle, text: "nameLabelSpotlight")
let showButtonSpotSpotlight = AwesomeSpotlight(withRect: showButton.frame, shape: .roundRectangle, text: "showButtonSpotSpotlight")
let showWithContinueAndSkipButtonSpotlight = AwesomeSpotlight(withRect: showWithContinueAndSkipButton.frame, shape: .roundRectangle, text: "showWithContinueAndSkipButtonSpotlight")
let showAllAtOnceButtonSpotlight = AwesomeSpotlight(withRect: showAllAtOnceButton.frame, shape: .roundRectangle, text: "showAllAtOnceButtonSpotlight", isAllowPassTouchesThroughSpotlight: true)
spotlightView = AwesomeSpotlightView(frame: view.frame, spotlight: [logoImageViewSpotlight, nameLabelSpotlight, showButtonSpotSpotlight, showWithContinueAndSkipButtonSpotlight, showAllAtOnceButtonSpotlight])
spotlightView.cutoutRadius = 8
spotlightView.delegate = self
}
// MARK: - Actions
@IBAction func handleShowAction(_ sender: AnyObject) {
view.addSubview(spotlightView)
spotlightView.continueButtonModel.isEnable = false
spotlightView.skipButtonModel.isEnable = false
spotlightView.showAllSpotlightsAtOnce = false
spotlightView.start()
}
@IBAction func handleShowWithContinueAndSkipAction(_ sender: AnyObject) {
view.addSubview(spotlightView)
spotlightView.continueButtonModel.isEnable = true
spotlightView.skipButtonModel.isEnable = true
spotlightView.showAllSpotlightsAtOnce = false
// Uncomment if want to customize skip button
//spotlightView.skipButtonLastStepTitle = "Finish"
//spotlightView.skipButtonModel = AwesomeTabButton(title: "Skip".uppercased(),
// font: UIFont.boldSystemFont(ofSize: 16.0),
// isEnable: true,
// backgroundColor: .red)
// Uncomment if want to customize continue button
//spotlightView.continueButtonModel = AwesomeTabButton(title: "Next",
// font: UIFont.italicSystemFont(ofSize: 16.0),
// isEnable: true,
// backgroundColor: .blue)
spotlightView.start()
}
@IBAction func handleShowAllAtOnceAction(_ sender: AnyObject) {
view.addSubview(spotlightView)
spotlightView.continueButtonModel.isEnable = false
spotlightView.skipButtonModel.isEnable = false
spotlightView.showAllSpotlightsAtOnce = true
spotlightView.start()
}
}
extension ViewController : AwesomeSpotlightViewDelegate {
func spotlightView(_ spotlightView: AwesomeSpotlightView, willNavigateToIndex index: Int) {
print("spotlightView willNavigateToIndex index = \(index)")
}
func spotlightView(_ spotlightView: AwesomeSpotlightView, didNavigateToIndex index: Int) {
print("spotlightView didNavigateToIndex index = \(index)")
}
func spotlightViewWillCleanup(_ spotlightView: AwesomeSpotlightView, atIndex index: Int) {
print("spotlightViewWillCleanup atIndex = \(index)")
}
func spotlightViewDidCleanup(_ spotlightView: AwesomeSpotlightView) {
print("spotlightViewDidCleanup")
}
}
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/project.pbxproj
================================================
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 52;
objects = {
/* Begin PBXBuildFile section */
520617651E64AA6D008689A2 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 520617641E64AA6D008689A2 /* AppDelegate.swift */; };
520617671E64AA6D008689A2 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 520617661E64AA6D008689A2 /* ViewController.swift */; };
5206176A1E64AA6D008689A2 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 520617681E64AA6D008689A2 /* Main.storyboard */; };
5206176C1E64AA6D008689A2 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5206176B1E64AA6D008689A2 /* Assets.xcassets */; };
5206176F1E64AA6D008689A2 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5206176D1E64AA6D008689A2 /* LaunchScreen.storyboard */; };
8927672826C1D3D400892BEB /* AwesomeSpotlightView in Frameworks */ = {isa = PBXBuildFile; productRef = 8927672726C1D3D400892BEB /* AwesomeSpotlightView */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
520617611E64AA6D008689A2 /* AwesomeSpotlightViewDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AwesomeSpotlightViewDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
520617641E64AA6D008689A2 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
520617661E64AA6D008689A2 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
520617691E64AA6D008689A2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
5206176B1E64AA6D008689A2 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
5206176E1E64AA6D008689A2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
520617701E64AA6E008689A2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
5206175E1E64AA6C008689A2 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
8927672826C1D3D400892BEB /* AwesomeSpotlightView in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
520617581E64AA6C008689A2 = {
isa = PBXGroup;
children = (
520617631E64AA6D008689A2 /* AwesomeSpotlightViewDemo */,
520617621E64AA6D008689A2 /* Products */,
);
indentWidth = 2;
sourceTree = "<group>";
tabWidth = 2;
};
520617621E64AA6D008689A2 /* Products */ = {
isa = PBXGroup;
children = (
520617611E64AA6D008689A2 /* AwesomeSpotlightViewDemo.app */,
);
name = Products;
sourceTree = "<group>";
};
520617631E64AA6D008689A2 /* AwesomeSpotlightViewDemo */ = {
isa = PBXGroup;
children = (
520617641E64AA6D008689A2 /* AppDelegate.swift */,
520617661E64AA6D008689A2 /* ViewController.swift */,
520617681E64AA6D008689A2 /* Main.storyboard */,
5206176B1E64AA6D008689A2 /* Assets.xcassets */,
5206176D1E64AA6D008689A2 /* LaunchScreen.storyboard */,
520617701E64AA6E008689A2 /* Info.plist */,
);
path = AwesomeSpotlightViewDemo;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
520617601E64AA6C008689A2 /* AwesomeSpotlightViewDemo */ = {
isa = PBXNativeTarget;
buildConfigurationList = 520617731E64AA6E008689A2 /* Build configuration list for PBXNativeTarget "AwesomeSpotlightViewDemo" */;
buildPhases = (
5206175D1E64AA6C008689A2 /* Sources */,
5206175E1E64AA6C008689A2 /* Frameworks */,
5206175F1E64AA6C008689A2 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = AwesomeSpotlightViewDemo;
packageProductDependencies = (
8927672726C1D3D400892BEB /* AwesomeSpotlightView */,
);
productName = AwesomeSpotlightViewDemo;
productReference = 520617611E64AA6D008689A2 /* AwesomeSpotlightViewDemo.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
520617591E64AA6C008689A2 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0820;
LastUpgradeCheck = 0920;
ORGANIZATIONNAME = "Alex Shoshiashvili";
TargetAttributes = {
520617601E64AA6C008689A2 = {
CreatedOnToolsVersion = 8.2.1;
DevelopmentTeam = 92465BS428;
LastSwiftMigration = 1020;
ProvisioningStyle = Automatic;
};
};
};
buildConfigurationList = 5206175C1E64AA6C008689A2 /* Build configuration list for PBXProject "AwesomeSpotlightViewDemo" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
mainGroup = 520617581E64AA6C008689A2;
packageReferences = (
8927672626C1D3D400892BEB /* XCRemoteSwiftPackageReference "AwesomeSpotlightView" */,
);
productRefGroup = 520617621E64AA6D008689A2 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
520617601E64AA6C008689A2 /* AwesomeSpotlightViewDemo */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
5206175F1E64AA6C008689A2 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
5206176F1E64AA6D008689A2 /* LaunchScreen.storyboard in Resources */,
5206176C1E64AA6D008689A2 /* Assets.xcassets in Resources */,
5206176A1E64AA6D008689A2 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
5206175D1E64AA6C008689A2 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
520617671E64AA6D008689A2 /* ViewController.swift in Sources */,
520617651E64AA6D008689A2 /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXVariantGroup section */
520617681E64AA6D008689A2 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
520617691E64AA6D008689A2 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
5206176D1E64AA6D008689A2 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
5206176E1E64AA6D008689A2 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
520617711E64AA6E008689A2 /* 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_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
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 = 10.2;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
520617721E64AA6E008689A2 /* 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_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
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 = 10.2;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
520617741E64AA6E008689A2 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = 92465BS428;
INFOPLIST_FILE = AwesomeSpotlightViewDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = aleksandrshoshiashvili.AwesomeSpotlightViewDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
};
name = Debug;
};
520617751E64AA6E008689A2 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = 92465BS428;
INFOPLIST_FILE = AwesomeSpotlightViewDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = aleksandrshoshiashvili.AwesomeSpotlightViewDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
5206175C1E64AA6C008689A2 /* Build configuration list for PBXProject "AwesomeSpotlightViewDemo" */ = {
isa = XCConfigurationList;
buildConfigurations = (
520617711E64AA6E008689A2 /* Debug */,
520617721E64AA6E008689A2 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
520617731E64AA6E008689A2 /* Build configuration list for PBXNativeTarget "AwesomeSpotlightViewDemo" */ = {
isa = XCConfigurationList;
buildConfigurations = (
520617741E64AA6E008689A2 /* Debug */,
520617751E64AA6E008689A2 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
/* Begin XCRemoteSwiftPackageReference section */
8927672626C1D3D400892BEB /* XCRemoteSwiftPackageReference "AwesomeSpotlightView" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/aleksandrshoshiashvili/AwesomeSpotlightView.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 0.1.12;
};
};
/* End XCRemoteSwiftPackageReference section */
/* Begin XCSwiftPackageProductDependency section */
8927672726C1D3D400892BEB /* AwesomeSpotlightView */ = {
isa = XCSwiftPackageProductDependency;
package = 8927672626C1D3D400892BEB /* XCRemoteSwiftPackageReference "AwesomeSpotlightView" */;
productName = AwesomeSpotlightView;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 520617591E64AA6C008689A2 /* Project object */;
}
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
================================================
{
"object": {
"pins": [
{
"package": "AwesomeSpotlightView",
"repositoryURL": "https://github.com/aleksandrshoshiashvili/AwesomeSpotlightView.git",
"state": {
"branch": null,
"revision": "91cd4a955c3737661066805c603a455d6aa366d0",
"version": "0.1.15"
}
}
]
},
"version": 1
}
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/aleksandr.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "1"
version = "2.0">
</Bucket>
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/aleksandr.xcuserdatad/xcschemes/AwesomeSpotlightViewDemo.xcscheme
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0820"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "520617601E64AA6C008689A2"
BuildableName = "AwesomeSpotlightViewDemo.app"
BlueprintName = "AwesomeSpotlightViewDemo"
ReferencedContainer = "container:AwesomeSpotlightViewDemo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "520617601E64AA6C008689A2"
BuildableName = "AwesomeSpotlightViewDemo.app"
BlueprintName = "AwesomeSpotlightViewDemo"
ReferencedContainer = "container:AwesomeSpotlightViewDemo.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 = "520617601E64AA6C008689A2"
BuildableName = "AwesomeSpotlightViewDemo.app"
BlueprintName = "AwesomeSpotlightViewDemo"
ReferencedContainer = "container:AwesomeSpotlightViewDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "520617601E64AA6C008689A2"
BuildableName = "AwesomeSpotlightViewDemo.app"
BlueprintName = "AwesomeSpotlightViewDemo"
ReferencedContainer = "container:AwesomeSpotlightViewDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/aleksandr.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>AwesomeSpotlightViewDemo.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>520617601E64AA6C008689A2</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/aleksandrsosiasvili.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
uuid = "2EC1C9D6-BF07-41E9-8D8F-E75F0A50FF24"
type = "1"
version = "2.0">
</Bucket>
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/aleksandrsosiasvili.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>AwesomeSpotlightViewDemo.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/alex.shoshiashvili.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "1"
version = "2.0">
</Bucket>
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/alex.shoshiashvili.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>AwesomeSpotlightViewDemo.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>AwesomeSpotlightViewDemo.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/macbookpro.xcuserdatad/xcschemes/AwesomeSpotlightViewDemo.xcscheme
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0820"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "520617601E64AA6C008689A2"
BuildableName = "AwesomeSpotlightViewDemo.app"
BlueprintName = "AwesomeSpotlightViewDemo"
ReferencedContainer = "container:AwesomeSpotlightViewDemo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "520617601E64AA6C008689A2"
BuildableName = "AwesomeSpotlightViewDemo.app"
BlueprintName = "AwesomeSpotlightViewDemo"
ReferencedContainer = "container:AwesomeSpotlightViewDemo.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 = "520617601E64AA6C008689A2"
BuildableName = "AwesomeSpotlightViewDemo.app"
BlueprintName = "AwesomeSpotlightViewDemo"
ReferencedContainer = "container:AwesomeSpotlightViewDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "520617601E64AA6C008689A2"
BuildableName = "AwesomeSpotlightViewDemo.app"
BlueprintName = "AwesomeSpotlightViewDemo"
ReferencedContainer = "container:AwesomeSpotlightViewDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
================================================
FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/macbookpro.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>AwesomeSpotlightViewDemo.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>520617601E64AA6C008689A2</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
================================================
FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/AppDelegate.h
================================================
//
// AppDelegate.h
// AwesomeSpotlightViewDemoObjC
//
// Created by FromF on 2018/08/15.
// Copyright © 2018年 FromF. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
================================================
FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/AppDelegate.m
================================================
//
// AppDelegate.m
// AwesomeSpotlightViewDemoObjC
//
// Created by FromF on 2018/08/15.
// Copyright © 2018年 FromF. All rights reserved.
//
#import "AppDelegate.h"
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
return YES;
}
@end
================================================
FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/Assets.xcassets/AppIcon.appiconset/Contents.json
================================================
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"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" : "20x20",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "2x"
},
{
"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"
},
{
"idiom" : "ipad",
"size" : "83.5x83.5",
"scale" : "2x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
================================================
FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/Assets.xcassets/Contents.json
================================================
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
================================================
FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/Assets.xcassets/spotlight.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "spotlight.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
================================================
FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/Base.lproj/LaunchScreen.storyboard
================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11762" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="aed-73-axf">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="8Uf-CL-Qc9">
<objects>
<viewController id="aed-73-axf" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="hdJ-rO-TbP"/>
<viewControllerLayoutGuide type="bottom" id="H11-ha-gum"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="uFT-Ub-r8B">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="AwesomeSpotlightView" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumScaleFactor="0.5" translatesAutoresizingMaskIntoConstraints="NO" id="fCe-O4-c9u">
<rect key="frame" x="74" y="309" width="285" height="50"/>
<fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="26"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="spotlight" translatesAutoresizingMaskIntoConstraints="NO" id="41H-fZ-woL">
<rect key="frame" x="16" y="309" width="50" height="50"/>
<constraints>
<constraint firstAttribute="width" constant="50" id="UWK-Ho-a5a"/>
<constraint firstAttribute="height" constant="50" id="uw3-56-GWB"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" red="0.37647058820000001" green="0.43137254899999999" blue="0.69411764710000001" alpha="0.65899268619999996" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="41H-fZ-woL" firstAttribute="leading" secondItem="uFT-Ub-r8B" secondAttribute="leadingMargin" id="6Se-9X-TCi"/>
<constraint firstItem="41H-fZ-woL" firstAttribute="top" secondItem="fCe-O4-c9u" secondAttribute="top" id="DDa-zX-s97"/>
<constraint firstItem="fCe-O4-c9u" firstAttribute="leading" secondItem="41H-fZ-woL" secondAttribute="trailing" constant="8" symbolic="YES" id="FQ1-LW-WRz"/>
<constraint firstItem="41H-fZ-woL" firstAttribute="bottom" secondItem="fCe-O4-c9u" secondAttribute="bottom" id="mA5-8w-4wQ"/>
<constraint firstItem="fCe-O4-c9u" firstAttribute="trailing" secondItem="uFT-Ub-r8B" secondAttribute="trailingMargin" id="v1x-MM-dvn"/>
<constraint firstItem="41H-fZ-woL" firstAttribute="centerY" secondItem="uFT-Ub-r8B" secondAttribute="centerY" id="xrk-0O-D8h"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="73f-Ks-2vT" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="52" y="374.66266866566718"/>
</scene>
</scenes>
<resources>
<image name="spotlight" width="96" height="96"/>
</resources>
</document>
================================================
FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/Base.lproj/Main.storyboard
================================================
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="gKI-C3-xRf">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="xKb-zV-8UK">
<objects>
<viewController id="gKI-C3-xRf" customClass="ViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="i1l-sw-uCR"/>
<viewControllerLayoutGuide type="bottom" id="m1h-1b-hKP"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="BsT-ko-Nfa">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="AwesomeSpotlightView" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumScaleFactor="0.5" translatesAutoresizingMaskIntoConstraints="NO" id="mpU-cS-2tM">
<rect key="frame" x="74" y="309" width="285" height="50"/>
<fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="26"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="spotlight" translatesAutoresizingMaskIntoConstraints="NO" id="h6i-Aa-otb">
<rect key="frame" x="16" y="309" width="50" height="50"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="A01-UX-wBh"/>
<constraint firstAttribute="width" constant="50" id="Y1H-pK-FcN"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="g2A-Yc-7kF">
<rect key="frame" x="16" y="509" width="343" height="50"/>
<color key="backgroundColor" red="0.2060487449" green="0.26086249160000002" blue="0.61514008620000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="cxA-Hg-MZ1"/>
</constraints>
<state key="normal" title="Show with continue and skip buttons">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="handleShowWithContinueAndSkipAction:" destination="gKI-C3-xRf" eventType="touchUpInside" id="tkk-1z-D6N"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="djy-fq-szD">
<rect key="frame" x="16" y="567" width="343" height="50"/>
<color key="backgroundColor" red="0.2060487449" green="0.26086249160000002" blue="0.61514008620000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="KjZ-0m-ivb"/>
</constraints>
<state key="normal" title="Show all at once">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="handleShowAllAtOnceAction:" destination="gKI-C3-xRf" eventType="touchUpInside" id="ojv-Eo-LD8"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="arz-8h-WIn">
<rect key="frame" x="16" y="451" width="343" height="50"/>
<color key="backgroundColor" red="0.2060487449" green="0.26086249160000002" blue="0.61514008620000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="mAT-gA-jHf"/>
</constraints>
<state key="normal" title="Show">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="handleShowAction:" destination="gKI-C3-xRf" eventType="touchUpInside" id="1Xo-n1-Fo0"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" red="0.37647058820000001" green="0.43137254899999999" blue="0.69411764710000001" alpha="0.65899268619999996" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="g2A-Yc-7kF" firstAttribute="trailing" secondItem="BsT-ko-Nfa" secondAttribute="trailingMargin" id="1Du-9f-kUe"/>
<constraint firstItem="arz-8h-WIn" firstAttribute="leading" secondItem="g2A-Yc-7kF" secondAttribute="leading" id="2oN-KL-r70"/>
<constraint firstItem="h6i-Aa-otb" firstAttribute="centerY" secondItem="BsT-ko-Nfa" secondAttribute="centerY" id="4xf-rE-9Zb"/>
<constraint firstItem="djy-fq-szD" firstAttribute="trailing" secondItem="BsT-ko-Nfa" secondAttribute="trailingMargin" id="CF2-Ku-Y9w"/>
<constraint firstItem="djy-fq-szD" firstAttribute="top" secondItem="g2A-Yc-7kF" secondAttribute="bottom" constant="8" symbolic="YES" id="ENy-CK-Juv"/>
<constraint firstItem="mpU-cS-2tM" firstAttribute="trailing" secondItem="BsT-ko-Nfa" secondAttribute="trailingMargin" id="G1g-VE-fmp"/>
<constraint firstItem="mpU-cS-2tM" firstAttribute="leading" secondItem="h6i-Aa-otb" secondAttribute="trailing" constant="8" symbolic="YES" id="NWt-ve-pkt"/>
<constraint firstItem="h6i-Aa-otb" firstAttribute="top" secondItem="mpU-cS-2tM" secondAttribute="top" id="OoV-bP-7R7"/>
<constraint firstItem="h6i-Aa-otb" firstAttribute="leading" secondItem="BsT-ko-Nfa" secondAttribute="leadingMargin" id="PoG-Y5-69T"/>
<constraint firstAttribute="bottom" secondItem="djy-fq-szD" secondAttribute="bottom" constant="50" id="QCZ-X3-jg2"/>
<constraint firstItem="g2A-Yc-7kF" firstAttribute="top" secondItem="arz-8h-WIn" secondAttribute="bottom" constant="8" symbolic="YES" id="UVy-re-kUP"/>
<constraint firstItem="arz-8h-WIn" firstAttribute="trailing" secondItem="g2A-Yc-7kF" secondAttribute="trailing" id="VbQ-JC-QVN"/>
<constraint firstItem="djy-fq-szD" firstAttribute="leading" secondItem="BsT-ko-Nfa" secondAttribute="leadingMargin" id="XzK-tZ-fcb"/>
<constraint firstItem="arz-8h-WIn" firstAttribute="centerX" secondItem="BsT-ko-Nfa" secondAttribute="centerX" id="dgh-Gy-RTi"/>
<constraint firstItem="g2A-Yc-7kF" firstAttribute="leading" secondItem="BsT-ko-Nfa" secondAttribute="leadingMargin" id="htz-YT-WZI"/>
<constraint firstItem="arz-8h-WIn" firstAttribute="trailing" secondItem="BsT-ko-Nfa" secondAttribute="trailingMargin" id="kq7-bD-ttV"/>
<constraint firstItem="arz-8h-WIn" firstAttribute="leading" secondItem="BsT-ko-Nfa" secondAttribute="leadingMargin" id="tJV-xX-ANZ"/>
<constraint firstItem="g2A-Yc-7kF" firstAttribute="trailing" secondItem="djy-fq-szD" secondAttribute="trailing" id="vlg-EK-2ng"/>
<constraint firstItem="g2A-Yc-7kF" firstAttribute="leading" secondItem="djy-fq-szD" secondAttribute="leading" id="whC-uD-QD5"/>
<constraint firstItem="h6i-Aa-otb" firstAttribute="bottom" secondItem="mpU-cS-2tM" secondAttribute="bottom" id="zmb-Ux-25m"/>
</constraints>
</view>
<connections>
<outlet property="logoImageView" destination="h6i-Aa-otb" id="Lk9-Ci-vnH"/>
<outlet property="nameLabel" destination="mpU-cS-2tM" id="HMe-bm-9Nq"/>
<outlet property="showAllAtOnceButton" destination="djy-fq-szD" id="1uX-EU-w26"/>
<outlet property="showButton" destination="arz-8h-WIn" id="liw-gh-Kwt"/>
<outlet property="showWithContinueAndSkipButton" destination="g2A-Yc-7kF" id="WNz-CP-uZL"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="2Ps-d5-Y9E" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="136.80000000000001" y="138.98050974512745"/>
</scene>
</scenes>
<resources>
<image name="spotlight" width="96" height="96"/>
</resources>
</document>
================================================
FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/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>$(DEVELOPMENT_LANGUAGE)</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>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: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/ViewController.h
================================================
//
// ViewController.h
// AwesomeSpotlightViewDemoObjC
//
// Created by FromF on 2018/08/15.
// Copyright © 2018年 FromF. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
================================================
FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/ViewController.m
================================================
//
// ViewController.m
// AwesomeSpotlightViewDemoObjC
//
// Created by FromF on 2018/08/15.
// Copyright © 2018年 FromF. All rights reserved.
//
#import "ViewController.h"
#import "AwesomeSpotlightView-Swift.h"
@interface ViewController () <AwesomeSpotlightViewDelegate>
@property (weak, nonatomic) IBOutlet UIImageView *logoImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UIButton *showButton;
@property (weak, nonatomic) IBOutlet UIButton *showWithContinueAndSkipButton;
@property (weak, nonatomic) IBOutlet UIButton *showAllAtOnceButton;
@property (strong, nonatomic) AwesomeSpotlightView *spotlightView;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
[self setupViews];
}
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
[self setupSpotlight];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
}
- (void)setupViews {
self.showButton.layer.cornerRadius = 8.0;
self.showButton.clipsToBounds = true;
self.showWithContinueAndSkipButton.layer.cornerRadius = 8.0;
self.showWithContinueAndSkipButton.clipsToBounds = true;
self.showAllAtOnceButton.layer.cornerRadius = 8.0;
self.showAllAtOnceButton.clipsToBounds = true;
}
- (void)setupSpotlight {
UIEdgeInsets spotlightMarginDefault = UIEdgeInsetsMake(0.0, 0.0, 0.0, 0.0);
CGRect logoImageViewSpotlightRect = CGRectMake(self.logoImageView.frame.origin.x, self.logoImageView.frame.origin.y, self.logoImageView.frame.size.width, self.logoImageView.frame.size.height);
UIEdgeInsets logoImageViewSpotlightMargin = UIEdgeInsetsMake(20.0, 20.0, 20.0, 20.0);
AwesomeSpotlight *logoImageViewSpotlight = [[AwesomeSpotlight alloc] initWithRect:logoImageViewSpotlightRect shape:AwesomeSpotlightShapeCircle text:@"logoImageViewSpotlight" margin:logoImageViewSpotlightMargin isAllowPassTouchesThroughSpotlight:false];
AwesomeSpotlight *nameLabelSpotlight = [[AwesomeSpotlight alloc] initWithRect:self.nameLabel.frame shape:AwesomeSpotlightShapeRectangle text:@"nameLabelSpotlight" margin:spotlightMarginDefault isAllowPassTouchesThroughSpotlight:false];
AwesomeSpotlight *showButtonSpotSpotlight = [[AwesomeSpotlight alloc] initWithRect:self.showButton.frame shape:AwesomeSpotlightShapeRoundRectangle text:@"showButtonSpotSpotlight" margin:spotlightMarginDefault isAllowPassTouchesThroughSpotlight:false];
AwesomeSpotlight *showWithContinueAndSkipButtonSpotlight = [[AwesomeSpotlight alloc] initWithRect:self.showWithContinueAndSkipButton.frame shape:AwesomeSpotlightShapeRoundRectangle text:@"showWithContinueAndSkipButtonSpotlight" margin:spotlightMarginDefault isAllowPassTouchesThroughSpotlight:false];
AwesomeSpotlight *showAllAtOnceButtonSpotlight = [[AwesomeSpotlight alloc] initWithRect:self.showAllAtOnceButton.frame shape:AwesomeSpotlightShapeRoundRectangle text:@"showAllAtOnceButtonSpotlight" margin:spotlightMarginDefault isAllowPassTouchesThroughSpotlight:false];
self.spotlightView = [[AwesomeSpotlightView alloc] initWithFrame:self.view.frame spotlight:@[logoImageViewSpotlight, nameLabelSpotlight, showButtonSpotSpotlight, showWithContinueAndSkipButtonSpotlight, showAllAtOnceButtonSpotlight]];
self.spotlightView.cutoutRadius = 8;
self.spotlightView.delegate = self;
}
#pragma mark Actions
- (IBAction)handleShowAction:(id)sender {
[self.view addSubview:self.spotlightView];
[self.spotlightView setContinueButtonEnable:false];
[self.spotlightView setSkipButtonEnable:false];
self.spotlightView.showAllSpotlightsAtOnce = false;
[self.spotlightView start];
}
- (IBAction)handleShowWithContinueAndSkipAction:(id)sender {
[self.view addSubview:self.spotlightView];
[self.spotlightView setContinueButtonEnable:true];
[self.spotlightView setSkipButtonEnable:true];
self.spotlightView.showAllSpotlightsAtOnce = false;
[self.spotlightView start];
}
- (IBAction)handleShowAllAtOnceAction:(id)sender {
[self.view addSubview:self.spotlightView];
[self.spotlightView setContinueButtonEnable:false];
[self.spotlightView setSkipButtonEnable:false];
self.spotlightView.showAllSpotlightsAtOnce = true;
[self.spotlightView start];
}
#pragma mark AwesomeSpotlightViewDelegate
- (void)spotlightView:(AwesomeSpotlightView *)spotlightView willNavigateToIndex:(NSInteger)index {
NSLog(@"spotlightView willNavigateToIndex index = %ld",(long)index);
}
- (void)spotlightView:(AwesomeSpotlightView *)spotlightView didNavigateToIndex:(NSInteger)index {
NSLog(@"spotlightView didNavigateToIndex index = %ld",(long)index);
}
- (void)spotlightViewWillCleanup:(AwesomeSpotlightView *)spotlightView atIndex:(NSInteger)index {
NSLog(@"spotlightViewWillCleanup atIndex = %ld",(long)index);
}
- (void)spotlightViewDidCleanup:(AwesomeSpotlightView *)spotlightView {
NSLog(@"spotlightViewDidCleanup");
}
@end
================================================
FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/main.m
================================================
//
// main.m
// AwesomeSpotlightViewDemoObjC
//
// Created by FromF on 2018/08/15.
// Copyright © 2018年 FromF. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
================================================
FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC.xcodeproj/project.pbxproj
================================================
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 51;
objects = {
/* Begin PBXBuildFile section */
41A2F4737FDEDF765EEC74A9 /* Pods_AwesomeSpotlightViewDemoObjC.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 23776EC7C46B97CB9AEEE00A /* Pods_AwesomeSpotlightViewDemoObjC.framework */; };
9DC01A9B2123B7CD006144A1 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9DC01A9A2123B7CD006144A1 /* AppDelegate.m */; };
9DC01A9E2123B7CD006144A1 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9DC01A9D2123B7CD006144A1 /* ViewController.m */; };
9DC01AA12123B7CD006144A1 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9DC01A9F2123B7CD006144A1 /* Main.storyboard */; };
9DC01AA32123B7D0006144A1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9DC01AA22123B7D0006144A1 /* Assets.xcassets */; };
9DC01AA62123B7D0006144A1 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9DC01AA42123B7D0006144A1 /* LaunchScreen.storyboard */; };
9DC01AA92123B7D0006144A1 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9DC01AA82123B7D0006144A1 /* main.m */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
15E4E2198DA619D276846642 /* Pods-AwesomeSpotlightViewDemoObjC.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AwesomeSpotlightViewDemoObjC.debug.xcconfig"; path = "Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC.debug.xcconfig"; sourceTree = "<group>"; };
23776EC7C46B97CB9AEEE00A /* Pods_AwesomeSpotlightViewDemoObjC.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AwesomeSpotlightViewDemoObjC.framework; sourceTree = BUILT_PRODUCTS_DIR; };
887999556C08C239C7BB5470 /* Pods-AwesomeSpotlightViewDemoObjC.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AwesomeSpotlightViewDemoObjC.release.xcconfig"; path = "Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC.release.xcconfig"; sourceTree = "<group>"; };
9DC01A962123B7CD006144A1 /* AwesomeSpotlightViewDemoObjC.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AwesomeSpotlightViewDemoObjC.app; sourceTree = BUILT_PRODUCTS_DIR; };
9DC01A992123B7CD006144A1 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
9DC01A9A2123B7CD006144A1 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
9DC01A9C2123B7CD006144A1 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
9DC01A9D2123B7CD006144A1 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
9DC01AA02123B7CD006144A1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
9DC01AA22123B7D0006144A1 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
9DC01AA52123B7D0006144A1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
9DC01AA72123B7D0006144A1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
9DC01AA82123B7D0006144A1 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
9DC01A932123B7CD006144A1 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
41A2F4737FDEDF765EEC74A9 /* Pods_AwesomeSpotlightViewDemoObjC.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
2606EA6B69613F3C38C427BE /* Pods */ = {
isa = PBXGroup;
children = (
15E4E2198DA619D276846642 /* Pods-AwesomeSpotlightViewDemoObjC.debug.xcconfig */,
887999556C08C239C7BB5470 /* Pods-AwesomeSpotlightViewDemoObjC.release.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
};
9DC01A8D2123B7CD006144A1 = {
isa = PBXGroup;
children = (
9DC01A982123B7CD006144A1 /* AwesomeSpotlightViewDemoObjC */,
9DC01A972123B7CD006144A1 /* Products */,
2606EA6B69613F3C38C427BE /* Pods */,
CB7BAF94348952E2858F9578 /* Frameworks */,
);
sourceTree = "<group>";
};
9DC01A972123B7CD006144A1 /* Products */ = {
isa = PBXGroup;
children = (
9DC01A962123B7CD006144A1 /* AwesomeSpotlightViewDemoObjC.app */,
);
name = Products;
sourceTree = "<group>";
};
9DC01A982123B7CD006144A1 /* AwesomeSpotlightViewDemoObjC */ = {
isa = PBXGroup;
children = (
9DC01A992123B7CD006144A1 /* AppDelegate.h */,
9DC01A9A2123B7CD006144A1 /* AppDelegate.m */,
9DC01A9C2123B7CD006144A1 /* ViewController.h */,
9DC01A9D2123B7CD006144A1 /* ViewController.m */,
9DC01A9F2123B7CD006144A1 /* Main.storyboard */,
9DC01AA22123B7D0006144A1 /* Assets.xcassets */,
9DC01AA42123B7D0006144A1 /* LaunchScreen.storyboard */,
9DC01AA72123B7D0006144A1 /* Info.plist */,
9DC01AA82123B7D0006144A1 /* main.m */,
);
path = AwesomeSpotlightViewDemoObjC;
sourceTree = "<group>";
};
CB7BAF94348952E2858F9578 /* Frameworks */ = {
isa = PBXGroup;
children = (
23776EC7C46B97CB9AEEE00A /* Pods_AwesomeSpotlightViewDemoObjC.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
9DC01A952123B7CD006144A1 /* AwesomeSpotlightViewDemoObjC */ = {
isa = PBXNativeTarget;
buildConfigurationList = 9DC01AAC2123B7D0006144A1 /* Build configuration list for PBXNativeTarget "AwesomeSpotlightViewDemoObjC" */;
buildPhases = (
75A67CEA8DF266CD72165BE7 /* [CP] Check Pods Manifest.lock */,
9DC01A922123B7CD006144A1 /* Sources */,
9DC01A932123B7CD006144A1 /* Frameworks */,
9DC01A942123B7CD006144A1 /* Resources */,
B1330E9BDF4C970B70763F1D /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
dependencies = (
);
name = AwesomeSpotlightViewDemoObjC;
productName = AwesomeSpotlightViewDemoObjC;
productReference = 9DC01A962123B7CD006144A1 /* AwesomeSpotlightViewDemoObjC.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
9DC01A8E2123B7CD006144A1 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0940;
ORGANIZATIONNAME = FromF;
TargetAttributes = {
9DC01A952123B7CD006144A1 = {
CreatedOnToolsVersion = 9.4.1;
};
};
};
buildConfigurationList = 9DC01A912123B7CD006144A1 /* Build configuration list for PBXProject "AwesomeSpotlightViewDemoObjC" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 9DC01A8D2123B7CD006144A1;
productRefGroup = 9DC01A972123B7CD006144A1 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
9DC01A952123B7CD006144A1 /* AwesomeSpotlightViewDemoObjC */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
9DC01A942123B7CD006144A1 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9DC01AA62123B7D0006144A1 /* LaunchScreen.storyboard in Resources */,
9DC01AA32123B7D0006144A1 /* Assets.xcassets in Resources */,
9DC01AA12123B7CD006144A1 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
75A67CEA8DF266CD72165BE7 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-AwesomeSpotlightViewDemoObjC-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/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# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
B1330E9BDF4C970B70763F1D /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
9DC01A922123B7CD006144A1 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9DC01A9E2123B7CD006144A1 /* ViewController.m in Sources */,
9DC01AA92123B7D0006144A1 /* main.m in Sources */,
9DC01A9B2123B7CD006144A1 /* AppDelegate.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXVariantGroup section */
9DC01A9F2123B7CD006144A1 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
9DC01AA02123B7CD006144A1 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
9DC01AA42123B7D0006144A1 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
9DC01AA52123B7D0006144A1 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
9DC01AAA2123B7D0006144A1 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
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 = 11.4;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
};
name = Debug;
};
9DC01AAB2123B7D0006144A1 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "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 = gnu11;
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 = 11.4;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
name = Release;
};
9DC01AAD2123B7D0006144A1 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 15E4E2198DA619D276846642 /* Pods-AwesomeSpotlightViewDemoObjC.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = AwesomeSpotlightViewDemoObjC/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = FromF.github.com.AwesomeSpotlightViewDemoObjC;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
9DC01AAE2123B7D0006144A1 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 887999556C08C239C7BB5470 /* Pods-AwesomeSpotlightViewDemoObjC.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = AwesomeSpotlightViewDemoObjC/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = FromF.github.com.AwesomeSpotlightViewDemoObjC;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
9DC01A912123B7CD006144A1 /* Build configuration list for PBXProject "AwesomeSpotlightViewDemoObjC" */ = {
isa = XCConfigurationList;
buildConfigurations = (
9DC01AAA2123B7D0006144A1 /* Debug */,
9DC01AAB2123B7D0006144A1 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
9DC01AAC2123B7D0006144A1 /* Build configuration list for PBXNativeTarget "AwesomeSpotlightViewDemoObjC" */ = {
isa = XCConfigurationList;
buildConfigurations = (
9DC01AAD2123B7D0006144A1 /* Debug */,
9DC01AAE2123B7D0006144A1 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 9DC01A8E2123B7CD006144A1 /* Project object */;
}
================================================
FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC.xcodeproj/project.xcworkspace/contents.xcworkspacedata
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:AwesomeSpotlightViewDemoObjC.xcodeproj">
</FileRef>
</Workspace>
================================================
FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
================================================
FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC.xcodeproj/xcuserdata/alex.shoshiashvili.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>AwesomeSpotlightViewDemoObjC.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>2</integer>
</dict>
</dict>
</dict>
</plist>
================================================
FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC.xcworkspace/contents.xcworkspacedata
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:AwesomeSpotlightViewDemoObjC.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>
================================================
FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC.xcworkspace/xcshareddata/IDEWorkspaceChecks.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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
================================================
FILE: AwesomeSpotlightViewDemoObjC/Podfile
================================================
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target 'AwesomeSpotlightViewDemoObjC' do
pod 'AwesomeSpotlightView'
end
================================================
FILE: AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlight.swift
================================================
//
// AwesomeSpotlight.swift
// AwesomeSpotlightView
//
// Created by Alex Shoshiashvili on 24.02.17.
// Copyright © 2017 Alex Shoshiashvili. All rights reserved.
//
import UIKit
open class AwesomeSpotlight: NSObject {
@objc public enum AwesomeSpotlightShape : Int {
case rectangle
case roundRectangle
case circle
}
var rect = CGRect()
var shape: AwesomeSpotlightShape = .roundRectangle
var margin = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
var isAllowPassTouchesThroughSpotlight = false
private var text: String = ""
private var attributedText: NSAttributedString? = nil
private let zeroMargin = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
var showedText: NSAttributedString {
if let attrText = attributedText {
return attrText
} else {
return NSAttributedString(string: text)
}
}
var rectValue: NSValue {
return NSValue(cgRect: rect)
}
@objc public init(withRect rect: CGRect,
shape: AwesomeSpotlightShape,
text: String,
margin: UIEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0),
isAllowPassTouchesThroughSpotlight: Bool = false) {
super.init()
self.rect = rect
self.shape = shape
self.text = text
self.margin = margin
self.isAllowPassTouchesThroughSpotlight = isAllowPassTouchesThroughSpotlight
}
@objc public init(withRect rect: CGRect,
shape: AwesomeSpotlightShape,
attributedText: NSAttributedString,
margin: UIEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0),
isAllowPassTouchesThroughSpotlight: Bool = false) {
super.init()
self.rect = rect
self.shape = shape
self.attributedText = attributedText
self.margin = margin
self.isAllowPassTouchesThroughSpotlight = isAllowPassTouchesThroughSpotlight
}
convenience override public init() {
self.init(withRect: CGRect(), shape: .roundRectangle, text: "", margin: UIEdgeInsets())
}
}
================================================
FILE: AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlightView.swift
================================================
//
// AwesomeSpotlightView.swift
// AwesomeSpotlightView
//
// Created by Alex Shoshiashvili on 24.02.17.
// Copyright © 2017 Alex Shoshiashvili. All rights reserved.
//
import UIKit
// MARK: - AwesomeSpotlightViewDelegate
@objc public protocol AwesomeSpotlightViewDelegate {
@objc optional func spotlightView(_ spotlightView: AwesomeSpotlightView, willNavigateToIndex index: Int)
@objc optional func spotlightView(_ spotlightView: AwesomeSpotlightView, didNavigateToIndex index: Int)
@objc optional func spotlightViewWillCleanup(_ spotlightView: AwesomeSpotlightView, atIndex index: Int)
@objc optional func spotlightViewDidCleanup(_ spotlightView: AwesomeSpotlightView)
}
@objcMembers
public class AwesomeSpotlightView: UIView {
public var delegate: AwesomeSpotlightViewDelegate?
// MARK: - private variables
private static let kAnimationDuration = 0.3
private static let kCutoutRadius: CGFloat = 4.0
private static let kMaxLabelWidth = 280.0
private static let kMaxLabelSpacing: CGFloat = 35.0
private static let kEnableContinueLabel = false
private static let kEnableSkipButton = false
private static let kEnableArrowDown = false
private static let kShowAllSpotlightsAtOnce = false
private static let kTextLabelFont = UIFont.systemFont(ofSize: 20.0)
private static let kContinueLabelFont = UIFont.systemFont(ofSize: 13.0)
private static let kSkipButtonFont = UIFont.boldSystemFont(ofSize: 13.0)
private static let kSkipButtonLastStepTitle = "Done".localized
private var spotlightMask = CAShapeLayer()
private var arrowDownImageView = UIImageView()
private var arrowDownSize = CGSize(width: 12, height: 18)
private var delayTime: TimeInterval = 0.35
private var hitTestPoints: [CGPoint] = []
// MARK: - public variables
public var spotlightsArray: [AwesomeSpotlight] = []
public var textLabel = UILabel()
public var continueLabel = UILabel()
public var skipSpotlightButton = UIButton()
public var animationDuration = kAnimationDuration
public var cutoutRadius: CGFloat = kCutoutRadius
public var maxLabelWidth = kMaxLabelWidth
public var labelSpacing: CGFloat = kMaxLabelSpacing
public var enableArrowDown = kEnableArrowDown
public var showAllSpotlightsAtOnce = kShowAllSpotlightsAtOnce
public var continueButtonModel = AwesomeTabButton(title: "Continue".localized, font: kContinueLabelFont, isEnable: kEnableContinueLabel)
public var skipButtonModel = AwesomeTabButton(title: "Skip".localized, font: kSkipButtonFont, isEnable: kEnableSkipButton)
public var skipButtonLastStepTitle = kSkipButtonLastStepTitle
public var spotlightMaskColor = UIColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.6) {
didSet {
spotlightMask.fillColor = spotlightMaskColor.cgColor
}
}
public var textLabelFont = kTextLabelFont {
didSet {
textLabel.font = textLabelFont
}
}
public var isShowed: Bool {
return currentIndex != 0
}
public var currentIndex = 0
// MARK: - Initializers
override public init(frame: CGRect) {
super.init(frame: frame)
}
convenience public init(frame: CGRect, spotlight: [AwesomeSpotlight]) {
self.init(frame: frame)
self.spotlightsArray = spotlight
self.setup()
}
required public init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
// MARK: - Setup
private func setup() {
setupMask()
setupTouches()
setupTextLabel()
setupArrowDown()
isHidden = true
}
private func setupMask() {
spotlightMask.fillRule = CAShapeLayerFillRule.evenOdd
spotlightMask.fillColor = spotlightMaskColor.cgColor
layer.addSublayer(spotlightMask)
}
private func setupTouches() {
let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(AwesomeSpotlightView.userDidTap(_:)))
addGestureRecognizer(tapGestureRecognizer)
}
private func setupTextLabel() {
let textLabelRect = CGRect(x: 0, y: 0, width: maxLabelWidth, height: 0)
textLabel = UILabel(frame: textLabelRect)
textLabel.backgroundColor = .clear
textLabel.textColor = .white
textLabel.font = textLabelFont
textLabel.lineBreakMode = .byWordWrapping
textLabel.numberOfLines = 0
textLabel.textAlignment = .center
textLabel.alpha = 0
addSubview(textLabel)
}
private func setupArrowDown() {
let arrowDownIconName = "arrowDownIcon"
if let bundlePath = Bundle.main.path(forResource: "AwesomeSpotlightViewBundle", ofType: "bundle") {
if let _ = Bundle(path: bundlePath)?.path(forResource: arrowDownIconName, ofType: "png") {
let arrowDownImage = UIImage(named: arrowDownIconName, in: Bundle(path: bundlePath), compatibleWith: nil)
arrowDownImageView = UIImageView(image: arrowDownImage)
arrowDownImageView.alpha = 0
addSubview(arrowDownImageView)
}
}
}
private func setupContinueLabel() {
let continueLabelWidth = skipButtonModel.isEnable ? 0.7 * bounds.size.width : bounds.size.width
let continueLabelHeight: CGFloat = 30.0
if #available(iOS 11.0, *) {
continueLabel = UILabel(frame: CGRect(x: 0, y: bounds.size.height - continueLabelHeight - safeAreaInsets.bottom, width: continueLabelWidth, height: continueLabelHeight))
} else {
continueLabel = UILabel(frame: CGRect(x: 0, y: bounds.size.height - continueLabelHeight, width: continueLabelWidth, height: continueLabelHeight))
}
continueLabel.font = continueButtonModel.font
continueLabel.textAlignment = .center
continueLabel.text = continueButtonModel.title
continueLabel.alpha = 0
continueLabel.backgroundColor = continueButtonModel.backgroundColor ?? .white
addSubview(continueLabel)
}
private func setupSkipSpotlightButton() {
let continueLabelWidth = 0.7 * bounds.size.width
let skipSpotlightButtonWidth = bounds.size.width - continueLabelWidth
let skipSpotlightButtonHeight: CGFloat = 30.0
if #available(iOS 11.0, *) {
skipSpotlightButton = UIButton(frame: CGRect(x: continueLabelWidth, y: bounds.size.height - skipSpotlightButtonHeight - safeAreaInsets.bottom, width: skipSpotlightButtonWidth, height: skipSpotlightButtonHeight))
} else {
skipSpotlightButton = UIButton(frame: CGRect(x: continueLabelWidth, y: bounds.size.height - skipSpotlightButtonHeight, width: skipSpotlightButtonWidth, height: skipSpotlightButtonHeight))
}
skipSpotlightButton.addTarget(self, action: #selector(AwesomeSpotlightView.skipSpotlight), for: .touchUpInside)
skipSpotlightButton.setTitle(skipButtonModel.title, for: [])
skipSpotlightButton.titleLabel?.font = skipButtonModel.font
skipSpotlightButton.alpha = 0
skipSpotlightButton.tintColor = .white
skipSpotlightButton.backgroundColor = skipButtonModel.backgroundColor ?? .clear
addSubview(skipSpotlightButton)
}
// MARK: - Touches
@objc func userDidTap(_ recognizer: UITapGestureRecognizer) {
goToSpotlightAtIndex(index: currentIndex + 1)
}
override public func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
let view = super.hitTest(point, with: event)
let localPoint = convert(point, from: self)
hitTestPoints.append(localPoint)
guard currentIndex < spotlightsArray.count else {
return view
}
let currentSpotlight = spotlightsArray[currentIndex]
if currentSpotlight.rect.contains(localPoint), currentSpotlight.isAllowPassTouchesThroughSpotlight {
if hitTestPoints.filter({ $0 == localPoint }).count == 1 {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.15, execute: {
self.cleanup()
})
}
return nil
}
return view
}
// MARK: - Presenter
public func start() {
alpha = 0
isHidden = false
textLabel.font = textLabelFont
UIView.animate(withDuration: animationDuration, animations: {
self.alpha = 1
}) { (finished) in
self.goToFirstSpotlight()
}
}
private func goToFirstSpotlight() {
goToSpotlightAtIndex(index: 0)
}
private func goToSpotlightAtIndex(index: Int) {
if index >= spotlightsArray.count {
cleanup()
} else if showAllSpotlightsAtOnce {
showSpotlightsAllAtOnce()
} else {
showSpotlightAtIndex(index: index)
}
}
private func showSpotlightsAllAtOnce() {
if let firstSpotlight = spotlightsArray.first {
continueButtonModel.isEnable = false
skipButtonModel.isEnable = false
setCutoutToSpotlight(spotlight: firstSpotlight)
animateCutoutToSpotlights(spotlights: spotlightsArray)
currentIndex = spotlightsArray.count
}
}
private func showSpotlightAtIndex(index: Int) {
currentIndex = index
let currentSpotlight = spotlightsArray[index]
delegate?.spotlightView?(self, willNavigateToIndex: index)
showTextLabel(spotlight: currentSpotlight)
showArrowIfNeeded(spotlight: currentSpotlight)
if currentIndex == 0 {
setCutoutToSpotlight(spotlight: currentSpotlight)
}
animateCutoutToSpotlight(spotlight: currentSpotlight)
showContinueLabelIfNeeded(index: index)
showSkipButtonIfNeeded(index: index)
}
private func showArrowIfNeeded(spotlight: AwesomeSpotlight) {
if enableArrowDown {
arrowDownImageView.frame = CGRect(origin: CGPoint(x: center.x - 6, y: spotlight.rect.origin.y - 18 - 16), size: arrowDownSize)
UIView.animate(withDuration: animationDuration, animations: {
self.arrowDownImageView.alpha = 1
})
}
}
private func showTextLabel(spotlight: AwesomeSpotlight) {
textLabel.alpha = 0
calculateTextPositionAndSizeWithSpotlight(spotlight: spotlight)
UIView.animate(withDuration: animationDuration) {
self.textLabel.alpha = 1
}
}
private func showContinueLabelIfNeeded(index: Int) {
if continueButtonModel.isEnable {
if index == 0 {
setupContinueLabel()
UIView.animate(withDuration: animationDuration, delay: delayTime, options: .curveLinear, animations: {
self.continueLabel.alpha = 1
})
} else if index >= spotlightsArray.count - 1 && continueLabel.alpha != 0 {
continueLabel.alpha = 0
continueLabel.removeFromSuperview()
}
}
}
private func showSkipButtonIfNeeded(index: Int) {
if skipButtonModel.isEnable && index == 0 {
setupSkipSpotlightButton()
UIView.animate(withDuration: animationDuration, delay: delayTime, options: .curveLinear, animations: {
self.skipSpotlightButton.alpha = 1
})
} else if skipSpotlightButton.isEnabled && index == spotlightsArray.count - 1 {
skipSpotlightButton.setTitle(skipButtonLastStepTitle, for: .normal)
}
}
@objc func skipSpotlight() {
goToSpotlightAtIndex(index: spotlightsArray.count)
}
private func skipAllSpotlights() {
goToSpotlightAtIndex(index: spotlightsArray.count)
}
// MARK: Helper
private func calculateRectWithMarginForSpotlight(_ spotlight: AwesomeSpotlight) -> CGRect {
var rect = spotlight.rect
rect.size.width += spotlight.margin.left + spotlight.margin.right
rect.size.height += spotlight.margin.bottom + spotlight.margin.top
rect.origin.x = rect.origin.x - (spotlight.margin.left + spotlight.margin.right) / 2.0
rect.origin.y = rect.origin.y - (spotlight.margin.top + spotlight.margin.bottom) / 2.0
return rect
}
private func calculateTextPositionAndSizeWithSpotlight(spotlight: AwesomeSpotlight) {
textLabel.frame = CGRect(x: 0, y: 0, width: maxLabelWidth, height: 0)
textLabel.attributedText = spotlight.showedText
if enableArrowDown && currentIndex == 0 {
labelSpacing += 18
}
textLabel.sizeToFit()
let rect = calculateRectWithMarginForSpotlight(spotlight)
var y = rect.origin.y + rect.size.height + labelSpacing
let bottomY = y + textLabel.frame.size.height + labelSpacing
if bottomY > bounds.size.height {
y = rect.origin.y - labelSpacing - textLabel.frame.size.height
}
let x : CGFloat = CGFloat(floor(bounds.size.width - textLabel.frame.size.width) / 2.0)
textLabel.frame = CGRect(origin: CGPoint(x: x, y: y), size: textLabel.frame.size)
}
// MARK: - Cutout and Animate
private func cutoutToSpotlight(spotlight: AwesomeSpotlight, isFirst : Bool = false) -> UIBezierPath {
var rect = calculateRectWithMarginForSpotlight(spotlight)
if isFirst {
let x = floor(spotlight.rect.origin.x + (spotlight.rect.size.width / 2.0))
let y = floor(spotlight.rect.origin.y + (spotlight.rect.size.height / 2.0))
let center = CGPoint(x: x, y: y)
rect = CGRect(origin: center, size: CGSize.zero)
}
let spotlightPath = UIBezierPath(rect: bounds)
var cutoutPath = UIBezierPath()
switch spotlight.shape {
case .rectangle:
cutoutPath = UIBezierPath(rect: rect)
case .roundRectangle:
cutoutPath = UIBezierPath(roundedRect: rect, cornerRadius: cutoutRadius)
case .circle:
cutoutPath = UIBezierPath(ovalIn: rect)
}
spotlightPath.append(cutoutPath)
return spotlightPath
}
private func cutoutToSpotlightCGPath(spotlight: AwesomeSpotlight, isFirst : Bool = false) -> CGPath {
return cutoutToSpotlight(spotlight: spotlight, isFirst: isFirst).cgPath
}
private func setCutoutToSpotlight(spotlight: AwesomeSpotlight) {
spotlightMask.path = cutoutToSpotlightCGPath(spotlight: spotlight, isFirst: true)
}
private func animateCutoutToSpotlight(spotlight: AwesomeSpotlight) {
let path = cutoutToSpotlightCGPath(spotlight: spotlight)
animateCutoutWithPath(path: path)
}
private func animateCutoutToSpotlights(spotlights: [AwesomeSpotlight]) {
let spotlightPath = UIBezierPath(rect: bounds)
for spotlight in spotlights {
var cutoutPath = UIBezierPath()
switch spotlight.shape {
case .rectangle:
cutoutPath = UIBezierPath(rect: spotlight.rect)
case .roundRectangle:
cutoutPath = UIBezierPath(roundedRect: spotlight.rect, cornerRadius: cutoutRadius)
case .circle:
cutoutPath = UIBezierPath(ovalIn: spotlight.rect)
}
spotlightPath.append(cutoutPath)
}
animateCutoutWithPath(path: spotlightPath.cgPath)
}
private func animateCutoutWithPath(path: CGPath) {
let animationKeyPath = "path"
let animation = CABasicAnimation(keyPath: animationKeyPath)
animation.delegate = self
animation.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeOut)
animation.duration = animationDuration
animation.isRemovedOnCompletion = false
animation.fillMode = CAMediaTimingFillMode.forwards
animation.fromValue = spotlightMask.path
animation.toValue = path
spotlightMask.add(animation, forKey: animationKeyPath)
spotlightMask.path = path
}
// MARK: - Cleanup
private func cleanup() {
delegate?.spotlightViewWillCleanup?(self, atIndex: currentIndex)
UIView.animate(withDuration: animationDuration, animations: {
self.alpha = 0
}) { (finished) in
if finished {
self.removeFromSuperview()
self.currentIndex = 0
self.textLabel.alpha = 0
self.continueLabel.alpha = 0
self.skipSpotlightButton.alpha = 0
self.hitTestPoints = []
self.delegate?.spotlightViewDidCleanup?(self)
}
}
}
// MARK: - Objective-C Support Function
// Objective-C provides support function because it does not correspond to struct
public func setContinueButtonEnable(_ isEnable:Bool) {
self.continueButtonModel.isEnable = isEnable
}
public func setSkipButtonEnable(_ isEnable:Bool) {
self.skipButtonModel.isEnable = isEnable
}
}
extension AwesomeSpotlightView: CAAnimationDelegate {
public func animationDidStop(_ anim: CAAnimation, finished flag: Bool) {
delegate?.spotlightView?(self, didNavigateToIndex: currentIndex)
}
}
================================================
FILE: AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/Localizable.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>Buttons</key>
<dict>
<key>Done</key>
<dict>
<key>value</key>
<string>Done</string>
<key>comment</key>
<string>skip last step button</string>
</dict>
<key>Continue</key>
<dict>
<key>value</key>
<string>Tap to continue</string>
<key>comment</key>
<string>continue button</string>
</dict>
<key>Skip</key>
<dict>
<key>value</key>
<string>Skip</string>
<key>comment</key>
<string>skip button</string>
</dict>
</dict>
</dict>
</plist>
================================================
FILE: AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/en.lproj/Localizable.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>Buttons</key>
<dict>
<key>Done</key>
<dict>
<key>value</key>
<string>Done</string>
<key>comment</key>
<string>skip last step button</string>
</dict>
<key>Continue</key>
<dict>
<key>value</key>
<string>Tap to continue</string>
<key>comment</key>
<string>continue button</string>
</dict>
<key>Skip</key>
<dict>
<key>value</key>
<string>Skip</string>
<key>comment</key>
<string>skip button</string>
</dict>
</dict>
</dict>
</plist>
================================================
FILE: AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/ru-RU.lproj/LaunchScreen.strings
================================================
================================================
FILE: AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/ru-RU.lproj/Localizable.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>Buttons</key>
<dict>
<key>Done</key>
<dict>
<key>value</key>
<string>Закрыть</string>
<key>comment</key>
<string>skip last step button</string>
</dict>
<key>Continue</key>
<dict>
<key>value</key>
<string>Далее</string>
<key>comment</key>
<string>continue button</string>
</dict>
<key>Skip</key>
<dict>
<key>value</key>
<string>Пропустить</string>
<key>comment</key>
<string>skip button</string>
</dict>
</dict>
</dict>
</plist>
================================================
FILE: AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/ru-RU.lproj/Main.strings
================================================
/* Class = "UIButton"; normalTitle = "Button"; ObjectID = "01d-Is-qNO"; */
"01d-Is-qNO.normalTitle" = "Button";
/* Class = "UIButton"; normalTitle = "ASDoadoASD"; ObjectID = "4bI-ez-zXA"; */
"4bI-ez-zXA.normalTitle" = "ASDoadoASD";
================================================
FILE: AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeTabButton.swift
================================================
//
// AwesomeTabButton.swift
// AwesomeSpotlightViewDemo
//
// Created by Alexander Shoshiashvili on 11/02/2018.
// Copyright © 2018 Alex Shoshiashvili. All rights reserved.
//
import UIKit
public struct AwesomeTabButton {
public var title: String
public var font: UIFont
public var isEnable: Bool
public var backgroundColor: UIColor?
public init(title: String, font: UIFont, isEnable: Bool = true, backgroundColor: UIColor? = nil) {
self.title = title
self.font = font
self.isEnable = isEnable
self.backgroundColor = backgroundColor
}
}
================================================
FILE: AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/Localizator.swift
================================================
//
// Localizator.swift
// AwesomeSpotlightView
//
// Created by David Cordero
// Update by Alex Shoshiashvili
// https://medium.com/@dcordero/a-different-way-to-deal-with-localized-strings-in-swift-3ea0da4cd143#.b863b9n1q
import Foundation
private class Localizator {
static let sharedInstance = Localizator()
lazy var localizableDictionary: NSDictionary! = {
if let bundlePath = Bundle(for: AwesomeSpotlightView.self)
.path(forResource: "AwesomeSpotlightViewBundle",
ofType: "bundle") {
if let path = Bundle(path: bundlePath)?
.path(forResource: "Localizable",
ofType: "plist") {
return NSDictionary(contentsOfFile: path)
}
}
fatalError("Localizable file NOT found")
}()
func localize(string: String) -> String {
guard let localizedString = ((localizableDictionary.value(forKey: "Buttons") as AnyObject).value(forKey: string) as AnyObject).value(forKey: "value") as? String else {
assertionFailure("Missing translation for: \(string)")
return ""
}
return localizedString
}
}
extension String {
var localized: String {
return Localizator.sharedInstance.localize(string: self)
}
}
================================================
FILE: AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/LICENSE
================================================
Copyright (c) 2017 aleksandrshoshiashvili <aleksandr.shoshiashvili@gmail.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.
================================================
FILE: AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/README.md
================================================
<p align="center">
<img src="https://pp.userapi.com/c604720/v604720888/37813/os4AzOREBAY.jpg" width="600px"></img>
</p>
<p align="center">
<img src="https://img.shields.io/badge/platform-iOS9%2B-blue.svg?style=flat" alt="Platform: iOS 9+" />
<a href="https://developer.apple.com/swift"><img src="https://img.shields.io/badge/language-swift4-f48041.svg?style=flat" alt="Language: Swift 4" /></a>
<a href="https://cocoapods.org/pods/AwesomeSpotlightView"><img src="https://cocoapod-badges.herokuapp.com/v/AwesomeSpotlightView/badge.png" alt="Cocoapods compatible" /></a>
<img src="https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat" alt="License: MIT" />
</p>
AwesomeSpotlightView is a nice and simple library for iOS written on Swift 4. It's highly customizable and easy-to-use tool. Works perfectly for tutorial or coach in your app.


## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
[Swift Example](https://github.com/aleksandrshoshiashvili/AwesomeSpotlightView/tree/master/AwesomeSpotlightViewDemo)
[ObjC Example](https://github.com/aleksandrshoshiashvili/AwesomeSpotlightView/tree/master/AwesomeSpotlightViewDemoObjC)
## Installation
### CocoaPods
AwesomeSpotlightView is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'AwesomeSpotlightView', '~> 0.1.8'
```
### Manually
* Just drop AwesomeSpotlightView folder in your project.
* You're ready to use AwesomeSpotlightView!
## Usage
```swift
override func viewDidLoad() {
super.viewDidLoad()
let spotlight1 = AwesomeSpotlight(withRect: CGRect(x: 75, y: 75, width: 100, height: 100), shape: .circle, text: "spotlight1", isAllowPassTouchesThroughSpotlight: true)
let spotlight2 = AwesomeSpotlight(withRect: CGRect(x: 20, y: 200, width: 130, height: 25), shape: .rectangle, text: "spotlight2")
let spotlight3 = AwesomeSpotlight(withRect: CGRect(x: 170, y: 50, width: 30, height: 100), shape: .roundRectangle, text: "spotlight3")
let spotlightView = AwesomeSpotlightView(frame: view.frame, spotlight: [spotlight1, spotlight2, spotlight3])
spotlightView.cutoutRadius = 8
spotlightView.delegate = self
view.addSubview(spotlightView)
spotlightView.start()
}
```
You can configure AwesomeSpotlightView before you present it using the `start` method. For example:
```objective-c
spotlightView.continueButtonModel = AwesomeTabButton(title: "Next", font: UIFont.italicSystemFont(ofSize: 16.0), isEnable: true)
spotlightView.skipButtonModel.isEnable = true
spotlightView.skipButtonLastStepTitle = "Finish"
spotlightView.showAllSpotlightsAtOnce = false
spotlightView.start()
```
## Configuration AwesomeSpotlight
### `rect` (CGRect)
The rect of spotlight.
### `shape` (AwesomeSpotlightShape)
Shape of spotlight: .rectangle, .roundRectangle, .circle.
### `margin` (UIEdgeInsets)
Margin for cutout shape. You can set extra space for item with this property.
### `isAllowPassTouchesThroughSpotlight` (Bool)
Set true if you want to allow pass touches through spotlight (allow interaction with view below spotlight) (default: false).
### `text` (String)
The text of the caption.
### `attributedText` (AttributedString)
The attributed text of the caption.
## Configuration AwesomeSpotlightView
### `spotlightsArray` ([AwesomeSpotlight])
Modify the spotlights.
### `spotlightMaskColor` (UIColor)
The color of the mask (default: 0,0,0 alpha 0.6).
### `animationDuration` (Double)
Transition animation duration to the next coach mark (default: 0.3).
### `cutoutRadius` (CGFloat)
The cutout rectangle radius (default: 4.0).
### `maxLabelWidth` (Double)
The captions label is set to have a max width of 280px. Number of lines is figured out automatically based on caption contents.
### `labelSpacing` (CGFloat)
Define how far the captions label appears above or below the cutout (default: 35px).
### `enableArrowDown` (Bool)
Icon with Arrow showed between caption text and caption (default: false).
### `textLabelFont` (UIFont)
Fond of caption text label (default: UIFont.systemFont(ofSize: 20.0)).
### `showAllSpotlightsAtOnce` (Bool)
Showed all spotlight at once (at the same time) (default: false).
### `skipButtonLastStepTitle` (String)
This title will show in skip button when user did open last spotlight. (default: Done)
### `continueButtonModel` (AwesomeTabButton)
### `skipButtonModel` (AwesomeTabButton)
You can setup buttons with `AwesomeTabButton` structure: title, font, backgroundColor and isEnable state.
Default for continueButtonModel: title: "Continue", font: UIFont.boldSystemFont(ofSize: 13.0), isEnable: false
Default for skipButtonModel: title: "Skip", font: UIFont.boldSystemFont(ofSize: 13.0), isEnable: false
## AwesomeSpotlightViewDelegate
### 1. Conform your view controller to the AwesomeSpotlightViewDelegate protocol:
`class ViewController: UIViewController, AwesomeSpotlightViewDelegate`
### 2. Assign the delegate to your AwesomeSpotlightView view instance:
`spotlightView.delegate = self`
### 3. Implement the delegate protocol methods:
*Note: All of the methods are optional. Implement only those that are needed.*
- `func spotlightView(_ spotlightView: AwesomeSpotlightView, willNavigateToIndex index: Int)`
- `func spotlightView(_ spotlightView: AwesomeSpotlightView, didNavigateToIndex index: Int)`
- `func spotlightViewWillCleanup(_ spotlightView: AwesomeSpotlightView, atIndex index: Int)`
- `func spotlightViewDidCleanup(_ spotlightView: AwesomeSpotlightView)`
## Inspired by
* [WSCoachMarksView](https://github.com/workshirt/WSCoachMarksView)
## Author
* [Aleksandr Shoshiashvili](https://github.com/aleksandrshoshiashvili)
================================================
FILE: AwesomeSpotlightViewDemoObjC/Pods/Pods.xcodeproj/project.pbxproj
================================================
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 51;
objects = {
/* Begin PBXBuildFile section */
0D3CC051145F48A605E41A9E9467A8EA /* AwesomeSpotlightView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 050A239F72F13B758C96128B0C547049 /* AwesomeSpotlightView.swift */; };
2F94FFFD5C521AF2E0153657D8EA8BEF /* AwesomeSpotlight.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32173174FF3F0689229601365D383D0A /* AwesomeSpotlight.swift */; };
391FD413A5F2D90A8CE06D6A1A4E5D14 /* AwesomeSpotlightViewBundle.bundle in Resources */ = {isa = PBXBuildFile; fileRef = DFACACEF524C4956B597E3F225273897 /* AwesomeSpotlightViewBundle.bundle */; };
39D183E3DBACA29E1DA16B4DB1888462 /* Pods-AwesomeSpotlightViewDemoObjC-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = DF17C59844D498BD143D2B1337C51C45 /* Pods-AwesomeSpotlightViewDemoObjC-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; };
403A5434130EAFFAA2539A2100B57496 /* AwesomeSpotlightView-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 05532F17513A2F4BE63A47151CCCCF8D /* AwesomeSpotlightView-dummy.m */; };
41C2C23D02F5BC4E2F9E8358D69B48A2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 40CB39E715FBCDAA142E6513E126200A /* Foundation.framework */; };
651658FF8444E368796BD52A74609062 /* AwesomeSpotlightView-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 6A07A823162D056BCCCEBA0CF544A791 /* AwesomeSpotlightView-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; };
9EA464E51BB96CC08B89398C45B186AB /* Pods-AwesomeSpotlightViewDemoObjC-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = E51686376F28ACCD9676D40A6B28A057 /* Pods-AwesomeSpotlightViewDemoObjC-dummy.m */; };
A0FBF6CC1A427568CC1E83C52356C6C5 /* Localizator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71E2DA42E2228E242C373A386DBAFB46 /* Localizator.swift */; };
B3BE8DAB2186DBEF3D28382FD18C29B0 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ECF2A2B0720AE923C22BED3192888BE0 /* UIKit.framework */; };
BCACF559971A10803615B48EA9D1B44E /* AwesomeTabButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = EF84B86272CD80F37476EC71819C3048 /* AwesomeTabButton.swift */; };
C4958433CA9413F484F1BF0D9EA4D8EA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 40CB39E715FBCDAA142E6513E126200A /* Foundation.framework */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
93E5AD4B3BCEF5C188214C394D7AE962 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 14FC0C9E4E078AC230B149162CB0E219;
remoteInfo = AwesomeSpotlightView;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
050A239F72F13B758C96128B0C547049 /* AwesomeSpotlightView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AwesomeSpotlightView.swift; path = AwesomeSpotlightView/Classes/AwesomeSpotlightView.swift; sourceTree = "<group>"; };
05532F17513A2F4BE63A47151CCCCF8D /* AwesomeSpotlightView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "AwesomeSpotlightView-dummy.m"; sourceTree = "<group>"; };
1E80B687977EF20B6E1B6046C7A863C2 /* Pods_AwesomeSpotlightViewDemoObjC.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_AwesomeSpotlightViewDemoObjC.framework; path = "Pods-AwesomeSpotlightViewDemoObjC.framework"; sourceTree = BUILT_PRODUCTS_DIR; };
2E0A82EE0A176099D8A23DA24B67DB7D /* Pods-AwesomeSpotlightViewDemoObjC-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-AwesomeSpotlightViewDemoObjC-Info.plist"; sourceTree = "<group>"; };
32173174FF3F0689229601365D383D0A /* AwesomeSpotlight.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AwesomeSpotlight.swift; path = AwesomeSpotlightView/Classes/AwesomeSpotlight.swift; sourceTree = "<group>"; };
40CB39E715FBCDAA142E6513E126200A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; };
48BCBE00575AA14CB9F5715BD5BC2A6C /* Pods-AwesomeSpotlightViewDemoObjC.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-AwesomeSpotlightViewDemoObjC.modulemap"; sourceTree = "<group>"; };
4D906D829CA494984535809DAB43BADE /* AwesomeSpotlightView.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = AwesomeSpotlightView.xcconfig; sourceTree = "<group>"; };
516949894615FBDFB7BAA09EB416478A /* AwesomeSpotlightView.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = AwesomeSpotlightView.modulemap; sourceTree = "<group>"; };
6A07A823162D056BCCCEBA0CF544A791 /* AwesomeSpotlightView-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "AwesomeSpotlightView-umbrella.h"; sourceTree = "<group>"; };
6BFAD0DBEBDBFB478228A3B2E3B31921 /* Pods-AwesomeSpotlightViewDemoObjC-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-AwesomeSpotlightViewDemoObjC-acknowledgements.plist"; sourceTree = "<group>"; };
711318556B88FF6E468885198BD712A0 /* Pods-AwesomeSpotlightViewDemoObjC.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AwesomeSpotlightViewDemoObjC.release.xcconfig"; sourceTree = "<group>"; };
71E2DA42E2228E242C373A386DBAFB46 /* Localizator.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Localizator.swift; path = AwesomeSpotlightView/Classes/Localizator.swift; sourceTree = "<group>"; };
7919B21CB361FB75A797085722A89339 /* Pods-AwesomeSpotlightViewDemoObjC.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AwesomeSpotlightViewDemoObjC.debug.xcconfig"; sourceTree = "<group>"; };
836F15855C45068D535AA3D03619D0E3 /* AwesomeSpotlightView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = AwesomeSpotlightView.framework; path = AwesomeSpotlightView.framework; sourceTree = BUILT_PRODUCTS_DIR; };
9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
9E2D78D9A7AA618F989DFB6FBA8B5F34 /* Pods-AwesomeSpotlightViewDemoObjC-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-AwesomeSpotlightViewDemoObjC-acknowledgements.markdown"; sourceTree = "<group>"; };
B1056A80344113E08E5E541A32250961 /* AwesomeSpotlightView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "AwesomeSpotlightView-prefix.pch"; sourceTree = "<group>"; };
B55DD9A4E0D4211E9C3578BC396AE7D1 /* Pods-AwesomeSpotlightViewDemoObjC-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-AwesomeSpotlightViewDemoObjC-frameworks.sh"; sourceTree = "<group>"; };
DF17C59844D498BD143D2B1337C51C45 /* Pods-AwesomeSpotlightViewDemoObjC-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-AwesomeSpotlightViewDemoObjC-umbrella.h"; sourceTree = "<group>"; };
DFACACEF524C4956B597E3F225273897 /* AwesomeSpotlightViewBundle.bundle */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "wrapper.plug-in"; name = AwesomeSpotlightViewBundle.bundle; path = AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle; sourceTree = "<group>"; };
E51686376F28ACCD9676D40A6B28A057 /* Pods-AwesomeSpotlightViewDemoObjC-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-AwesomeSpotlightViewDemoObjC-dummy.m"; sourceTree = "<group>"; };
ECF2A2B0720AE923C22BED3192888BE0 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; };
EF84B86272CD80F37476EC71819C3048 /* AwesomeTabButton.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AwesomeTabButton.swift; path = AwesomeSpotlightView/Classes/AwesomeTabButton.swift; sourceTree = "<group>"; };
FFCB91E0D72F10980B9866DF52DDFE43 /* AwesomeSpotlightView-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "AwesomeSpotlightView-Info.plist"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
579A3669E9587362E21E46239DC720BE /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
41C2C23D02F5BC4E2F9E8358D69B48A2 /* Foundation.framework in Frameworks */,
B3BE8DAB2186DBEF3D28382FD18C29B0 /* UIKit.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
C8500CA61F1A0846F0AB4162FC640C52 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
C4958433CA9413F484F1BF0D9EA4D8EA /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
1628BF05B4CAFDCC3549A101F5A10A17 /* Frameworks */ = {
isa = PBXGroup;
children = (
E169A450ED27AC725DF52953F66D11E0 /* iOS */,
);
name = Frameworks;
sourceTree = "<group>";
};
500835089CF4264478EE04D41AE5C08F /* Pods-AwesomeSpotlightViewDemoObjC */ = {
isa = PBXGroup;
children = (
48BCBE00575AA14CB9F5715BD5BC2A6C /* Pods-AwesomeSpotlightViewDemoObjC.modulemap */,
9E2D78D9A7AA618F989DFB6FBA8B5F34 /* Pods-AwesomeSpotlightViewDemoObjC-acknowledgements.markdown */,
6BFAD0DBEBDBFB478228A3B2E3B31921 /* Pods-AwesomeSpotlightViewDemoObjC-acknowledgements.plist */,
E51686376F28ACCD9676D40A6B28A057 /* Pods-AwesomeSpotlightViewDemoObjC-dummy.m */,
B55DD9A4E0D4211E9C3578BC396AE7D1 /* Pods-AwesomeSpotlightViewDemoObjC-frameworks.sh */,
2E0A82EE0A176099D8A23DA24B67DB7D /* Pods-AwesomeSpotlightViewDemoObjC-Info.plist */,
DF17C59844D498BD143D2B1337C51C45 /* Pods-AwesomeSpotlightViewDemoObjC-umbrella.h */,
7919B21CB361FB75A797085722A89339 /* Pods-AwesomeSpotlightViewDemoObjC.debug.xcconfig */,
711318556B88FF6E468885198BD712A0 /* Pods-AwesomeSpotlightViewDemoObjC.release.xcconfig */,
);
name = "Pods-AwesomeSpotlightViewDemoObjC";
path = "Target Support Files/Pods-AwesomeSpotlightViewDemoObjC";
sourceTree = "<group>";
};
53B0A71A77F825986EB8036903AEDB8B /* Products */ = {
isa = PBXGroup;
children = (
836F15855C45068D535AA3D03619D0E3 /* AwesomeSpotlightView.framework */,
1E80B687977EF20B6E1B6046C7A863C2 /* Pods_AwesomeSpotlightViewDemoObjC.framework */,
);
name = Products;
sourceTree = "<group>";
};
70CC18D3ED5AAD157B97552B13CE309A /* Pods */ = {
isa = PBXGroup;
children = (
C7200A7F9D2B16E115EC46D172A70795 /* AwesomeSpotlightView */,
);
name = Pods;
sourceTree = "<group>";
};
AF57F69D4F50E167FE0BDD465627CE9F /* Targets Support Files */ = {
isa = PBXGroup;
children = (
500835089CF4264478EE04D41AE5C08F /* Pods-AwesomeSpotlightViewDemoObjC */,
);
name = "Targets Support Files";
sourceTree = "<group>";
};
C1587C66BDE89FD1B6B5B4F7B03C631C /* Support Files */ = {
isa = PBXGroup;
children = (
516949894615FBDFB7BAA09EB416478A /* AwesomeSpotlightView.modulemap */,
4D906D829CA494984535809DAB43BADE /* AwesomeSpotlightView.xcconfig */,
05532F17513A2F4BE63A47151CCCCF8D /* AwesomeSpotlightView-dummy.m */,
FFCB91E0D72F10980B9866DF52DDFE43 /* AwesomeSpotlightView-Info.plist */,
B1056A80344113E08E5E541A32250961 /* AwesomeSpotlightView-prefix.pch */,
6A07A823162D056BCCCEBA0CF544A791 /* AwesomeSpotlightView-umbrella.h */,
);
name = "Support Files";
path = "../Target Support Files/AwesomeSpotlightView";
sourceTree = "<group>";
};
C7200A7F9D2B16E115EC46D172A70795 /* AwesomeSpotlightView */ = {
isa = PBXGroup;
children = (
32173174FF3F0689229601365D383D0A /* AwesomeSpotlight.swift */,
050A239F72F13B758C96128B0C547049 /* AwesomeSpotlightView.swift */,
EF84B86272CD80F37476EC71819C3048 /* AwesomeTabButton.swift */,
71E2DA42E2228E242C373A386DBAFB46 /* Localizator.swift */,
EEDBFCE57DFEBB9D02F3F5E8D464D9ED /* Resources */,
C1587C66BDE89FD1B6B5B4F7B03C631C /* Support Files */,
);
name = AwesomeSpotlightView;
path = AwesomeSpotlightView;
sourceTree = "<group>";
};
CF1408CF629C7361332E53B88F7BD30C = {
isa = PBXGroup;
children = (
9D940727FF8FB9C785EB98E56350EF41 /* Podfile */,
1628BF05B4CAFDCC3549A101F5A10A17 /* Frameworks */,
70CC18D3ED5AAD157B97552B13CE309A /* Pods */,
53B0A71A77F825986EB8036903AEDB8B /* Products */,
AF57F69D4F50E167FE0BDD465627CE9F /* Targets Support Files */,
);
sourceTree = "<group>";
};
E169A450ED27AC725DF52953F66D11E0 /* iOS */ = {
isa = PBXGroup;
children = (
40CB39E715FBCDAA142E6513E126200A /* Foundation.framework */,
ECF2A2B0720AE923C22BED3192888BE0 /* UIKit.framework */,
);
name = iOS;
sourceTree = "<group>";
};
EEDBFCE57DFEBB9D02F3F5E8D464D9ED /* Resources */ = {
isa = PBXGroup;
children = (
DFACACEF524C4956B597E3F225273897 /* AwesomeSpotlightViewBundle.bundle */,
);
name = Resources;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
ABF9E78B192F9377D572B5B9784A6853 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
39D183E3DBACA29E1DA16B4DB1888462 /* Pods-AwesomeSpotlightViewDemoObjC-umbrella.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
B803B58868A67417A0EE05435C7595C8 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
651658FF8444E368796BD52A74609062 /* AwesomeSpotlightView-umbrella.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
14FC0C9E4E078AC230B149162CB0E219 /* AwesomeSpotlightView */ = {
isa = PBXNativeTarget;
buildConfigurationList = F8E5ABB2DA10D923FCFE194284E129DA /* Build configuration list for PBXNativeTarget "AwesomeSpotlightView" */;
buildPhases = (
B803B58868A67417A0EE05435C7595C8 /* Headers */,
DC088C82E61E66C1A28C6FC6DB3296C7 /* Sources */,
579A3669E9587362E21E46239DC720BE /* Frameworks */,
A0576E39AC9AA89C1D36772C6DED6256 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = AwesomeSpotlightView;
productName = AwesomeSpotlightView;
productReference = 836F15855C45068D535AA3D03619D0E3 /* AwesomeSpotlightView.framework */;
productType = "com.apple.product-type.framework";
};
8622C13C4054122A5D93AB6601FB1CD2 /* Pods-AwesomeSpotlightViewDemoObjC */ = {
isa = PBXNativeTarget;
buildConfigurationList = 2F858C8B0F3B215A729657F94CEC2346 /* Build configuration list for PBXNativeTarget "Pods-AwesomeSpotlightViewDemoObjC" */;
buildPhases = (
ABF9E78B192F9377D572B5B9784A6853 /* Headers */,
9783D05E7DE5F6E4DA68171698DEBDEE /* Sources */,
C8500CA61F1A0846F0AB4162FC640C52 /* Frameworks */,
8946C1F6EF364B5EDCFD0D8E2CD70EA3 /* Resources */,
);
buildRules = (
);
dependencies = (
03D4C10A0385F112F65B0E5CA9F10D9F /* PBXTargetDependency */,
);
name = "Pods-AwesomeSpotlightViewDemoObjC";
productName = "Pods-AwesomeSpotlightViewDemoObjC";
productReference = 1E80B687977EF20B6E1B6046C7A863C2 /* Pods_AwesomeSpotlightViewDemoObjC.framework */;
productType = "com.apple.product-type.framework";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
BFDFE7DC352907FC980B868725387E98 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0930;
LastUpgradeCheck = 0930;
};
buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = CF1408CF629C7361332E53B88F7BD30C;
productRefGroup = 53B0A71A77F825986EB8036903AEDB8B /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
14FC0C9E4E078AC230B149162CB0E219 /* AwesomeSpotlightView */,
8622C13C4054122A5D93AB6601FB1CD2 /* Pods-AwesomeSpotlightViewDemoObjC */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
8946C1F6EF364B5EDCFD0D8E2CD70EA3 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
A0576E39AC9AA89C1D36772C6DED6256 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
391FD413A5F2D90A8CE06D6A1A4E5D14 /* AwesomeSpotlightViewBundle.bundle in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
9783D05E7DE5F6E4DA68171698DEBDEE /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9EA464E51BB96CC08B89398C45B186AB /* Pods-AwesomeSpotlightViewDemoObjC-dummy.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
DC088C82E61E66C1A28C6FC6DB3296C7 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
2F94FFFD5C521AF2E0153657D8EA8BEF /* AwesomeSpotlight.swift in Sources */,
403A5434130EAFFAA2539A2100B57496 /* AwesomeSpotlightView-dummy.m in Sources */,
0D3CC051145F48A605E41A9E9467A8EA /* AwesomeSpotlightView.swift in Sources */,
BCACF559971A10803615B48EA9D1B44E /* AwesomeTabButton.swift in Sources */,
A0FBF6CC1A427568CC1E83C52356C6C5 /* Localizator.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
03D4C10A0385F112F65B0E5CA9F10D9F /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = AwesomeSpotlightView;
target = 14FC0C9E4E078AC230B149162CB0E219 /* AwesomeSpotlightView */;
targetProxy = 93E5AD4B3BCEF5C188214C394D7AE962 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
3048B0C5C704DFFF688DA57F5380ED58 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
"POD_CONFIGURATION_RELEASE=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 = 10.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_NAME = "$(TARGET_NAME)";
STRIP_INSTALLED_PRODUCT = NO;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
SWIFT_VERSION = 4.2;
SYMROOT = "${SRCROOT}/../build";
};
name = Release;
};
4AD3E88B01635EF6B9C5CD71705A34EE /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 4D906D829CA494984535809DAB43BADE /* AwesomeSpotlightView.xcconfig */;
buildSettings = {
CODE_SIGN_IDENTITY = "";
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
CURRENT_PROJECT_VERSION = 1;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
GCC_PREFIX_HEADER = "Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView-prefix.pch";
INFOPLIST_FILE = "Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView-Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MODULEMAP_FILE = "Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView.modulemap";
PRODUCT_MODULE_NAME = AwesomeSpotlightView;
PRODUCT_NAME = AwesomeSpotlightView;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) ";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
};
5B0C8287D755FD95091CF35D87FB8B2D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"POD_CONFIGURATION_DEBUG=1",
"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 = 10.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_NAME = "$(TARGET_NAME)";
STRIP_INSTALLED_PRODUCT = NO;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
SYMROOT = "${SRCROOT}/../build";
};
name = Debug;
};
ADAFA2F3396DEA28461D1595517AAAC9 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 4D906D829CA494984535809DAB43BADE /* AwesomeSpotlightView.xcconfig */;
buildSettings = {
CODE_SIGN_IDENTITY = "";
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
CURRENT_PROJECT_VERSION = 1;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
GCC_PREFIX_HEADER = "Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView-prefix.pch";
INFOPLIST_FILE = "Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView-Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MODULEMAP_FILE = "Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView.modulemap";
PRODUCT_MODULE_NAME = AwesomeSpotlightView;
PRODUCT_NAME = AwesomeSpotlightView;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) ";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Release;
};
D50048B8BBCB693067256E8E597466AE /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7919B21CB361FB75A797085722A89339 /* Pods-AwesomeSpotlightViewDemoObjC.debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
CLANG_ENABLE_OBJC_WEAK = NO;
CODE_SIGN_IDENTITY = "";
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
CURRENT_PROJECT_VERSION = 1;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACH_O_TYPE = staticlib;
MODULEMAP_FILE = "Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC.modulemap";
OTHER_LDFLAGS = "";
OTHER_LIBTOOLFLAGS = "";
PODS_ROOT = "$(SRCROOT)";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
};
E6120B2A11EA597B2EBEE8C047C6B7E1 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 711318556B88FF6E468885198BD712A0 /* Pods-AwesomeSpotlightViewDemoObjC.release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
CLANG_ENABLE_OBJC_WEAK = NO;
CODE_SIGN_IDENTITY = "";
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
CURRENT_PROJECT_VERSION = 1;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACH_O_TYPE = staticlib;
MODULEMAP_FILE = "Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC.modulemap";
OTHER_LDFLAGS = "";
OTHER_LIBTOOLFLAGS = "";
PODS_ROOT = "$(SRCROOT)";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
2F858C8B0F3B215A729657F94CEC2346 /* Build configuration list for PBXNativeTarget "Pods-AwesomeSpotlightViewDemoObjC" */ = {
isa = XCConfigurationList;
buildConfigurations = (
D50048B8BBCB693067256E8E597466AE /* Debug */,
E6120B2A11EA597B2EBEE8C047C6B7E1 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = {
isa = XCConfigurationList;
buildConfigurations = (
5B0C8287D755FD95091CF35D87FB8B2D /* Debug */,
3048B0C5C704DFFF688DA57F5380ED58 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
F8E5ABB2DA10D923FCFE194284E129DA /* Build configuration list for PBXNativeTarget "AwesomeSpotlightView" */ = {
isa = XCConfigurationList;
buildConfigurations = (
4AD3E88B01635EF6B9C5CD71705A34EE /* Debug */,
ADAFA2F3396DEA28461D1595517AAAC9 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */;
}
================================================
FILE: AwesomeSpotlightViewDemoObjC/Pods/Pods.xcodeproj/xcuserdata/alex.shoshiashvili.xcuserdatad/xcschemes/AwesomeSpotlightView.xcscheme
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0930"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForAnalyzing = "YES"
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "14FC0C9E4E078AC230B149162CB0E219"
BuildableName = "AwesomeSpotlightView.framework"
BlueprintName = "AwesomeSpotlightView"
ReferencedContainer = "container:Pods.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
buildConfiguration = "Debug"
allowLocationSimulation = "YES">
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES"
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
================================================
FILE: AwesomeSpotlightViewDemoObjC/Pods/Pods.xcodeproj/xcuserdata/alex.shoshiashvili.xcuserdatad/xcschemes/Pods-AwesomeSpotlightViewDemoObjC.xcscheme
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0930"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8622C13C4054122A5D93AB6601FB1CD2"
BuildableName = "Pods_AwesomeSpotlightViewDemoObjC.framework"
BlueprintName = "Pods-AwesomeSpotlightViewDemoObjC"
ReferencedContainer = "container:Pods.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<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">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8622C13C4054122A5D93AB6601FB1CD2"
BuildableName = "Pods_AwesomeSpotlightViewDemoObjC.framework"
BlueprintName = "Pods-AwesomeSpotlightViewDemoObjC"
ReferencedContainer = "container:Pods.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
================================================
FILE: AwesomeSpotlightViewDemoObjC/Pods/Pods.xcodeproj/xcuserdata/alex.shoshiashvili.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>AwesomeSpotlightView.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>Pods-AwesomeSpotlightViewDemoObjC.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>1</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict/>
</dict>
</plist>
================================================
FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView-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>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.1.9</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>${CURRENT_PROJECT_VERSION}</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
================================================
FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView-dummy.m
================================================
#import <Foundation/Foundation.h>
@interface PodsDummy_AwesomeSpotlightView : NSObject
@end
@implementation PodsDummy_AwesomeSpotlightView
@end
================================================
FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView-prefix.pch
================================================
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
=======================
gitextract_9pa15yrf/ ├── .gitignore ├── .swiftpm/ │ └── xcode/ │ ├── package.xcworkspace/ │ │ ├── contents.xcworkspacedata │ │ └── xcuserdata/ │ │ └── aleksandrsosiasvili.xcuserdatad/ │ │ └── UserInterfaceState.xcuserstate │ └── xcuserdata/ │ └── aleksandrsosiasvili.xcuserdatad/ │ └── xcschemes/ │ └── xcschememanagement.plist ├── AwesomeSpotlightView/ │ └── Classes/ │ ├── AwesomeSpotlight.swift │ ├── AwesomeSpotlightView.swift │ ├── AwesomeSpotlightViewBundle.bundle/ │ │ ├── Localizable.plist │ │ ├── en.lproj/ │ │ │ └── Localizable.plist │ │ └── ru-RU.lproj/ │ │ ├── LaunchScreen.strings │ │ ├── Localizable.plist │ │ └── Main.strings │ ├── AwesomeTabButton.swift │ └── Localizator.swift ├── AwesomeSpotlightView.podspec ├── AwesomeSpotlightViewDemo/ │ ├── AwesomeSpotlightViewDemo/ │ │ ├── AppDelegate.swift │ │ ├── Assets.xcassets/ │ │ │ ├── AppIcon.appiconset/ │ │ │ │ └── Contents.json │ │ │ ├── Contents.json │ │ │ └── spotlight.imageset/ │ │ │ └── Contents.json │ │ ├── Base.lproj/ │ │ │ ├── LaunchScreen.storyboard │ │ │ └── Main.storyboard │ │ ├── Info.plist │ │ └── ViewController.swift │ └── AwesomeSpotlightViewDemo.xcodeproj/ │ ├── project.pbxproj │ ├── project.xcworkspace/ │ │ ├── contents.xcworkspacedata │ │ ├── xcshareddata/ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── swiftpm/ │ │ │ └── Package.resolved │ │ └── xcuserdata/ │ │ ├── aleksandr.xcuserdatad/ │ │ │ └── UserInterfaceState.xcuserstate │ │ ├── alex.shoshiashvili.xcuserdatad/ │ │ │ └── UserInterfaceState.xcuserstate │ │ └── macbookpro.xcuserdatad/ │ │ └── UserInterfaceState.xcuserstate │ └── xcuserdata/ │ ├── aleksandr.xcuserdatad/ │ │ ├── xcdebugger/ │ │ │ └── Breakpoints_v2.xcbkptlist │ │ └── xcschemes/ │ │ ├── AwesomeSpotlightViewDemo.xcscheme │ │ └── xcschememanagement.plist │ ├── aleksandrsosiasvili.xcuserdatad/ │ │ ├── xcdebugger/ │ │ │ └── Breakpoints_v2.xcbkptlist │ │ └── xcschemes/ │ │ └── xcschememanagement.plist │ ├── alex.shoshiashvili.xcuserdatad/ │ │ ├── xcdebugger/ │ │ │ └── Breakpoints_v2.xcbkptlist │ │ └── xcschemes/ │ │ └── xcschememanagement.plist │ └── macbookpro.xcuserdatad/ │ └── xcschemes/ │ ├── AwesomeSpotlightViewDemo.xcscheme │ └── xcschememanagement.plist ├── AwesomeSpotlightViewDemoObjC/ │ ├── AwesomeSpotlightViewDemoObjC/ │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Assets.xcassets/ │ │ │ ├── AppIcon.appiconset/ │ │ │ │ └── Contents.json │ │ │ ├── Contents.json │ │ │ └── spotlight.imageset/ │ │ │ └── Contents.json │ │ ├── Base.lproj/ │ │ │ ├── LaunchScreen.storyboard │ │ │ └── Main.storyboard │ │ ├── Info.plist │ │ ├── ViewController.h │ │ ├── ViewController.m │ │ └── main.m │ ├── AwesomeSpotlightViewDemoObjC.xcodeproj/ │ │ ├── project.pbxproj │ │ ├── project.xcworkspace/ │ │ │ ├── contents.xcworkspacedata │ │ │ ├── xcshareddata/ │ │ │ │ └── IDEWorkspaceChecks.plist │ │ │ └── xcuserdata/ │ │ │ └── alex.shoshiashvili.xcuserdatad/ │ │ │ └── UserInterfaceState.xcuserstate │ │ └── xcuserdata/ │ │ └── alex.shoshiashvili.xcuserdatad/ │ │ └── xcschemes/ │ │ └── xcschememanagement.plist │ ├── AwesomeSpotlightViewDemoObjC.xcworkspace/ │ │ ├── contents.xcworkspacedata │ │ ├── xcshareddata/ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── xcuserdata/ │ │ └── alex.shoshiashvili.xcuserdatad/ │ │ └── UserInterfaceState.xcuserstate │ ├── Podfile │ └── Pods/ │ ├── AwesomeSpotlightView/ │ │ ├── AwesomeSpotlightView/ │ │ │ └── Classes/ │ │ │ ├── AwesomeSpotlight.swift │ │ │ ├── AwesomeSpotlightView.swift │ │ │ ├── AwesomeSpotlightViewBundle.bundle/ │ │ │ │ ├── Localizable.plist │ │ │ │ ├── en.lproj/ │ │ │ │ │ └── Localizable.plist │ │ │ │ └── ru-RU.lproj/ │ │ │ │ ├── LaunchScreen.strings │ │ │ │ ├── Localizable.plist │ │ │ │ └── Main.strings │ │ │ ├── AwesomeTabButton.swift │ │ │ └── Localizator.swift │ │ ├── LICENSE │ │ └── README.md │ ├── Pods.xcodeproj/ │ │ ├── project.pbxproj │ │ └── xcuserdata/ │ │ └── alex.shoshiashvili.xcuserdatad/ │ │ └── xcschemes/ │ │ ├── AwesomeSpotlightView.xcscheme │ │ ├── Pods-AwesomeSpotlightViewDemoObjC.xcscheme │ │ └── xcschememanagement.plist │ └── Target Support Files/ │ ├── AwesomeSpotlightView/ │ │ ├── AwesomeSpotlightView-Info.plist │ │ ├── AwesomeSpotlightView-dummy.m │ │ ├── AwesomeSpotlightView-prefix.pch │ │ ├── AwesomeSpotlightView-umbrella.h │ │ ├── AwesomeSpotlightView.modulemap │ │ └── AwesomeSpotlightView.xcconfig │ └── Pods-AwesomeSpotlightViewDemoObjC/ │ ├── Pods-AwesomeSpotlightViewDemoObjC-Info.plist │ ├── Pods-AwesomeSpotlightViewDemoObjC-acknowledgements.markdown │ ├── Pods-AwesomeSpotlightViewDemoObjC-acknowledgements.plist │ ├── Pods-AwesomeSpotlightViewDemoObjC-dummy.m │ ├── Pods-AwesomeSpotlightViewDemoObjC-frameworks-Debug-input-files.xcfilelist │ ├── Pods-AwesomeSpotlightViewDemoObjC-frameworks-Debug-output-files.xcfilelist │ ├── Pods-AwesomeSpotlightViewDemoObjC-frameworks-Release-input-files.xcfilelist │ ├── Pods-AwesomeSpotlightViewDemoObjC-frameworks-Release-output-files.xcfilelist │ ├── Pods-AwesomeSpotlightViewDemoObjC-frameworks.sh │ ├── Pods-AwesomeSpotlightViewDemoObjC-resources-Debug-input-files.xcfilelist │ ├── Pods-AwesomeSpotlightViewDemoObjC-resources-Debug-output-files.xcfilelist │ ├── Pods-AwesomeSpotlightViewDemoObjC-resources-Release-input-files.xcfilelist │ ├── Pods-AwesomeSpotlightViewDemoObjC-resources-Release-output-files.xcfilelist │ ├── Pods-AwesomeSpotlightViewDemoObjC-resources.sh │ ├── Pods-AwesomeSpotlightViewDemoObjC-umbrella.h │ ├── Pods-AwesomeSpotlightViewDemoObjC.debug.xcconfig │ ├── Pods-AwesomeSpotlightViewDemoObjC.modulemap │ └── Pods-AwesomeSpotlightViewDemoObjC.release.xcconfig ├── LICENSE ├── Package.swift └── README.md
Condensed preview — 100 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (244K chars).
[
{
"path": ".gitignore",
"chars": 155,
"preview": "\nAwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/project.xcworkspace/xcuserdata/aleksandrsosiasvili.xcuserda"
},
{
"path": ".swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata",
"chars": 135,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n version = \"1.0\">\n <FileRef\n location = \"self:\">\n </FileRef"
},
{
"path": ".swiftpm/xcode/xcuserdata/aleksandrsosiasvili.xcuserdatad/xcschemes/xcschememanagement.plist",
"chars": 500,
"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": "AwesomeSpotlightView/Classes/AwesomeSpotlight.swift",
"chars": 1822,
"preview": "//\n// AwesomeSpotlight.swift\n// AwesomeSpotlightView\n//\n// Created by Alex Shoshiashvili on 24.02.17.\n// Copyright ©"
},
{
"path": "AwesomeSpotlightView/Classes/AwesomeSpotlightView.swift",
"chars": 16546,
"preview": "//\n// AwesomeSpotlightView.swift\n// AwesomeSpotlightView\n//\n// Created by Alex Shoshiashvili on 24.02.17.\n// Copyrig"
},
{
"path": "AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/Localizable.plist",
"chars": 662,
"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": "AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/en.lproj/Localizable.plist",
"chars": 662,
"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": "AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/ru-RU.lproj/LaunchScreen.strings",
"chars": 1,
"preview": "\n"
},
{
"path": "AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/ru-RU.lproj/Localizable.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": "AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/ru-RU.lproj/Main.strings",
"chars": 234,
"preview": "\n/* Class = \"UIButton\"; normalTitle = \"Button\"; ObjectID = \"01d-Is-qNO\"; */\n\"01d-Is-qNO.normalTitle\" = \"Button\";\n\n/* Cla"
},
{
"path": "AwesomeSpotlightView/Classes/AwesomeTabButton.swift",
"chars": 581,
"preview": "//\n// AwesomeTabButton.swift\n// AwesomeSpotlightViewDemo\n//\n// Created by Alexander Shoshiashvili on 11/02/2018.\n// "
},
{
"path": "AwesomeSpotlightView/Classes/Localizator.swift",
"chars": 1766,
"preview": "//\n// Localizator.swift\n// AwesomeSpotlightView\n//\n// Created by David Cordero \n// Update by Alex Shoshiashvili\n// "
},
{
"path": "AwesomeSpotlightView.podspec",
"chars": 1590,
"preview": "#\n# Be sure to run `pod spec lint AwesomeSpotlightView.podspec' to ensure this is a\n# valid spec and to remove all com"
},
{
"path": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo/AppDelegate.swift",
"chars": 452,
"preview": "//\n// AppDelegate.swift\n// AwesomeSpotlightViewDemo\n//\n// Created by Alex Shoshiashvili on 27.02.17.\n// Copyright © "
},
{
"path": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo/Assets.xcassets/AppIcon.appiconset/Contents.json",
"chars": 753,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"iphone\",\n \"size\" : \"20x20\",\n \"scale\" : \"2x\"\n },\n {\n \"idiom\""
},
{
"path": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo/Assets.xcassets/Contents.json",
"chars": 62,
"preview": "{\n \"info\" : {\n \"version\" : 1,\n \"author\" : \"xcode\"\n }\n}"
},
{
"path": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo/Assets.xcassets/spotlight.imageset/Contents.json",
"chars": 306,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"universal\",\n \"scale\" : \"1x\"\n },\n {\n \"idiom\" : \"universal\",\n "
},
{
"path": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo/Base.lproj/LaunchScreen.storyboard",
"chars": 4664,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard"
},
{
"path": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo/Base.lproj/Main.storyboard",
"chars": 11465,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3"
},
{
"path": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo/Info.plist",
"chars": 1041,
"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": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo/ViewController.swift",
"chars": 4986,
"preview": "//\n// ViewController.swift\n// AwesomeSpotlightView\n//\n// Created by Alex Shoshiashvili on 24.02.17.\n// Copyright © 2"
},
{
"path": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/project.pbxproj",
"chars": 13542,
"preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 52;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
},
{
"path": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
"chars": 135,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n version = \"1.0\">\n <FileRef\n location = \"self:\">\n </FileRef"
},
{
"path": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
"chars": 238,
"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": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved",
"chars": 363,
"preview": "{\n \"object\": {\n \"pins\": [\n {\n \"package\": \"AwesomeSpotlightView\",\n \"repositoryURL\": \"https://githu"
},
{
"path": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/aleksandr.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": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/aleksandr.xcuserdatad/xcschemes/AwesomeSpotlightViewDemo.xcscheme",
"chars": 3507,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n LastUpgradeVersion = \"0820\"\n version = \"1.3\">\n <BuildAction\n "
},
{
"path": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/aleksandr.xcuserdatad/xcschemes/xcschememanagement.plist",
"chars": 496,
"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": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/aleksandrsosiasvili.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist",
"chars": 140,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Bucket\n uuid = \"2EC1C9D6-BF07-41E9-8D8F-E75F0A50FF24\"\n type = \"1\"\n version"
},
{
"path": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/aleksandrsosiasvili.xcuserdatad/xcschemes/xcschememanagement.plist",
"chars": 359,
"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": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/alex.shoshiashvili.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": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/alex.shoshiashvili.xcuserdatad/xcschemes/xcschememanagement.plist",
"chars": 473,
"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": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/macbookpro.xcuserdatad/xcschemes/AwesomeSpotlightViewDemo.xcscheme",
"chars": 3507,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n LastUpgradeVersion = \"0820\"\n version = \"1.3\">\n <BuildAction\n "
},
{
"path": "AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/macbookpro.xcuserdatad/xcschemes/xcschememanagement.plist",
"chars": 496,
"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": "AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/AppDelegate.h",
"chars": 290,
"preview": "//\n// AppDelegate.h\n// AwesomeSpotlightViewDemoObjC\n//\n// Created by FromF on 2018/08/15.\n// Copyright © 2018年 FromF"
},
{
"path": "AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/AppDelegate.m",
"chars": 436,
"preview": "//\n// AppDelegate.m\n// AwesomeSpotlightViewDemoObjC\n//\n// Created by FromF on 2018/08/15.\n// Copyright © 2018年 FromF"
},
{
"path": "AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/Assets.xcassets/AppIcon.appiconset/Contents.json",
"chars": 1590,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"iphone\",\n \"size\" : \"20x20\",\n \"scale\" : \"2x\"\n },\n {\n \"idiom\""
},
{
"path": "AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/Assets.xcassets/Contents.json",
"chars": 62,
"preview": "{\n \"info\" : {\n \"version\" : 1,\n \"author\" : \"xcode\"\n }\n}"
},
{
"path": "AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/Assets.xcassets/spotlight.imageset/Contents.json",
"chars": 306,
"preview": "{\n \"images\" : [\n {\n \"idiom\" : \"universal\",\n \"scale\" : \"1x\"\n },\n {\n \"idiom\" : \"universal\",\n "
},
{
"path": "AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/Base.lproj/LaunchScreen.storyboard",
"chars": 4664,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard"
},
{
"path": "AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/Base.lproj/Main.storyboard",
"chars": 11240,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3"
},
{
"path": "AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/Info.plist",
"chars": 1463,
"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": "AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/ViewController.h",
"chars": 228,
"preview": "//\n// ViewController.h\n// AwesomeSpotlightViewDemoObjC\n//\n// Created by FromF on 2018/08/15.\n// Copyright © 2018年 Fr"
},
{
"path": "AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/ViewController.m",
"chars": 4980,
"preview": "//\n// ViewController.m\n// AwesomeSpotlightViewDemoObjC\n//\n// Created by FromF on 2018/08/15.\n// Copyright © 2018年 Fr"
},
{
"path": "AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/main.m",
"chars": 347,
"preview": "//\n// main.m\n// AwesomeSpotlightViewDemoObjC\n//\n// Created by FromF on 2018/08/15.\n// Copyright © 2018年 FromF. All r"
},
{
"path": "AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC.xcodeproj/project.pbxproj",
"chars": 17495,
"preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 51;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
},
{
"path": "AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
"chars": 173,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n version = \"1.0\">\n <FileRef\n location = \"self:AwesomeSpotligh"
},
{
"path": "AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
"chars": 238,
"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": "AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC.xcodeproj/xcuserdata/alex.shoshiashvili.xcuserdatad/xcschemes/xcschememanagement.plist",
"chars": 363,
"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": "AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC.xcworkspace/contents.xcworkspacedata",
"chars": 246,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n version = \"1.0\">\n <FileRef\n location = \"group:AwesomeSpotlig"
},
{
"path": "AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
"chars": 238,
"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": "AwesomeSpotlightViewDemoObjC/Podfile",
"chars": 160,
"preview": "source 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '10.0'\nuse_frameworks!\n\ntarget 'AwesomeSpotlightViewDemoO"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlight.swift",
"chars": 2269,
"preview": "//\n// AwesomeSpotlight.swift\n// AwesomeSpotlightView\n//\n// Created by Alex Shoshiashvili on 24.02.17.\n// Copyright ©"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlightView.swift",
"chars": 17745,
"preview": "//\n// AwesomeSpotlightView.swift\n// AwesomeSpotlightView\n//\n// Created by Alex Shoshiashvili on 24.02.17.\n// Copyrig"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/Localizable.plist",
"chars": 662,
"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": "AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/en.lproj/Localizable.plist",
"chars": 662,
"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": "AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/ru-RU.lproj/LaunchScreen.strings",
"chars": 1,
"preview": "\n"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/ru-RU.lproj/Localizable.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": "AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/ru-RU.lproj/Main.strings",
"chars": 234,
"preview": "\n/* Class = \"UIButton\"; normalTitle = \"Button\"; ObjectID = \"01d-Is-qNO\"; */\n\"01d-Is-qNO.normalTitle\" = \"Button\";\n\n/* Cla"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeTabButton.swift",
"chars": 581,
"preview": "//\n// AwesomeTabButton.swift\n// AwesomeSpotlightViewDemo\n//\n// Created by Alexander Shoshiashvili on 11/02/2018.\n// "
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/Localizator.swift",
"chars": 1223,
"preview": "//\n// Localizator.swift\n// AwesomeSpotlightView\n//\n// Created by David Cordero \n// Update by Alex Shoshiashvili\n// "
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/LICENSE",
"chars": 1102,
"preview": "Copyright (c) 2017 aleksandrshoshiashvili <aleksandr.shoshiashvili@gmail.com>\n\nPermission is hereby granted, free of cha"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/README.md",
"chars": 5973,
"preview": "<p align=\"center\">\n<img src=\"https://pp.userapi.com/c604720/v604720888/37813/os4AzOREBAY.jpg\" width=\"600px\"></img>\n</p>\n"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Pods.xcodeproj/project.pbxproj",
"chars": 31170,
"preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 51;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Pods.xcodeproj/xcuserdata/alex.shoshiashvili.xcuserdatad/xcschemes/AwesomeSpotlightView.xcscheme",
"chars": 2118,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n LastUpgradeVersion = \"0930\"\n version = \"1.3\">\n <BuildAction\n "
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Pods.xcodeproj/xcuserdata/alex.shoshiashvili.xcuserdatad/xcschemes/Pods-AwesomeSpotlightViewDemoObjC.xcscheme",
"chars": 2601,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n LastUpgradeVersion = \"0930\"\n version = \"1.3\">\n <BuildAction\n "
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Pods.xcodeproj/xcuserdata/alex.shoshiashvili.xcuserdatad/xcschemes/xcschememanagement.plist",
"chars": 585,
"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": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView-Info.plist",
"chars": 828,
"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": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView-dummy.m",
"chars": 144,
"preview": "#import <Foundation/Foundation.h>\n@interface PodsDummy_AwesomeSpotlightView : NSObject\n@end\n@implementation PodsDummy_Aw"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView-prefix.pch",
"chars": 195,
"preview": "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPO"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView-umbrella.h",
"chars": 332,
"preview": "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPO"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView.modulemap",
"chars": 130,
"preview": "framework module AwesomeSpotlightView {\n umbrella header \"AwesomeSpotlightView-umbrella.h\"\n\n export *\n module * { exp"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView.xcconfig",
"chars": 549,
"preview": "CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/AwesomeSpotlightView\nGCC_PREPROCESSOR_DEFINITIONS = $(inherite"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-Info.plist",
"chars": 828,
"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": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-acknowledgements.markdown",
"chars": 1262,
"preview": "# Acknowledgements\nThis application makes use of the following third party libraries:\n\n## AwesomeSpotlightView\n\nCopyrigh"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-acknowledgements.plist",
"chars": 2141,
"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": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-dummy.m",
"chars": 170,
"preview": "#import <Foundation/Foundation.h>\n@interface PodsDummy_Pods_AwesomeSpotlightViewDemoObjC : NSObject\n@end\n@implementation"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-frameworks-Debug-input-files.xcfilelist",
"chars": 189,
"preview": "${PODS_ROOT}/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-frameworks.sh\n${BU"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-frameworks-Debug-output-files.xcfilelist",
"chars": 76,
"preview": "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AwesomeSpotlightView.framework"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-frameworks-Release-input-files.xcfilelist",
"chars": 189,
"preview": "${PODS_ROOT}/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-frameworks.sh\n${BU"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-frameworks-Release-output-files.xcfilelist",
"chars": 76,
"preview": "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AwesomeSpotlightView.framework"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-frameworks.sh",
"chars": 7918,
"preview": "#!/bin/sh\nset -e\nset -u\nset -o pipefail\n\nfunction on_error {\n echo \"$(realpath -mq \"${0}\"):$1: error: Unexpected failur"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-resources-Debug-input-files.xcfilelist",
"chars": 211,
"preview": "${PODS_ROOT}/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-resources.sh\n${POD"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-resources-Debug-output-files.xcfilelist",
"chars": 90,
"preview": "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AwesomeSpotlightViewBundle.bundle"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-resources-Release-input-files.xcfilelist",
"chars": 211,
"preview": "${PODS_ROOT}/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-resources.sh\n${POD"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-resources-Release-output-files.xcfilelist",
"chars": 90,
"preview": "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AwesomeSpotlightViewBundle.bundle"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-resources.sh",
"chars": 6772,
"preview": "#!/bin/sh\nset -e\nset -u\nset -o pipefail\n\nfunction on_error {\n echo \"$(realpath -mq \"${0}\"):$1: error: Unexpected failur"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-umbrella.h",
"chars": 358,
"preview": "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPO"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC.debug.xcconfig",
"chars": 756,
"preview": "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES\nFRAMEWORK_SEARCH_PATHS = $(inherited) \"${PODS_CONFIGURATION_BUILD_DIR}/Aweso"
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC.modulemap",
"chars": 156,
"preview": "framework module Pods_AwesomeSpotlightViewDemoObjC {\n umbrella header \"Pods-AwesomeSpotlightViewDemoObjC-umbrella.h\"\n\n "
},
{
"path": "AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC.release.xcconfig",
"chars": 756,
"preview": "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES\nFRAMEWORK_SEARCH_PATHS = $(inherited) \"${PODS_CONFIGURATION_BUILD_DIR}/Aweso"
},
{
"path": "LICENSE",
"chars": 1102,
"preview": "Copyright (c) 2017 aleksandrshoshiashvili <aleksandr.shoshiashvili@gmail.com>\n\nPermission is hereby granted, free of cha"
},
{
"path": "Package.swift",
"chars": 529,
"preview": "// swift-tools-version:5.3\nimport PackageDescription\n\nlet package = Package(\n name: \"AwesomeSpotlightView\",\n platf"
},
{
"path": "README.md",
"chars": 6507,
"preview": "<p align=\"center\">\n<img src=\"https://pp.userapi.com/c604720/v604720888/37813/os4AzOREBAY.jpg\" width=\"600px\"></img>\n</p>\n"
}
]
// ... and 6 more files (download for full content)
About this extraction
This page contains the full source code of the aleksandrshoshiashvili/AwesomeSpotlightView GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 100 files (212.1 KB), approximately 66.4k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.