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 ================================================ ================================================ FILE: .swiftpm/xcode/xcuserdata/aleksandrsosiasvili.xcuserdatad/xcschemes/xcschememanagement.plist ================================================ SchemeUserState AwesomeSpotlightView.xcscheme_^#shared#^_ orderHint 0 SuppressBuildableAutocreation AwesomeSpotlightView primary ================================================ 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 ================================================ Buttons Done value Done comment skip last step button Continue value Tap to continue comment continue button Skip value Skip comment skip button ================================================ FILE: AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/en.lproj/Localizable.plist ================================================ Buttons Done value Done comment skip last step button Continue value Tap to continue comment continue button Skip value Skip comment skip button ================================================ FILE: AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/ru-RU.lproj/LaunchScreen.strings ================================================ ================================================ FILE: AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/ru-RU.lproj/Localizable.plist ================================================ Buttons Done value Закрыть comment skip last step button Continue value Далее comment continue button Skip value Пропустить comment skip button ================================================ 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 ================================================ ================================================ FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo/Base.lproj/Main.storyboard ================================================ HelveticaNeue ================================================ FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo/Info.plist ================================================ CFBundleDevelopmentRegion en CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName $(PRODUCT_NAME) CFBundlePackageType APPL CFBundleShortVersionString 1.0 CFBundleVersion 1 LSRequiresIPhoneOS UILaunchStoryboardName LaunchScreen UIMainStoryboardFile Main UIRequiredDeviceCapabilities armv7 UISupportedInterfaceOrientations UIInterfaceOrientationPortrait ================================================ 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 = ""; }; 520617661E64AA6D008689A2 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 520617691E64AA6D008689A2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 5206176B1E64AA6D008689A2 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 5206176E1E64AA6D008689A2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 520617701E64AA6E008689A2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; /* 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 = ""; tabWidth = 2; }; 520617621E64AA6D008689A2 /* Products */ = { isa = PBXGroup; children = ( 520617611E64AA6D008689A2 /* AwesomeSpotlightViewDemo.app */, ); name = Products; sourceTree = ""; }; 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 = ""; }; /* 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 = ""; }; 5206176D1E64AA6D008689A2 /* LaunchScreen.storyboard */ = { isa = PBXVariantGroup; children = ( 5206176E1E64AA6D008689A2 /* Base */, ); name = LaunchScreen.storyboard; sourceTree = ""; }; /* 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 ================================================ ================================================ FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist ================================================ IDEDidComputeMac32BitWarning ================================================ 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 ================================================ ================================================ FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/aleksandr.xcuserdatad/xcschemes/AwesomeSpotlightViewDemo.xcscheme ================================================ ================================================ FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/aleksandr.xcuserdatad/xcschemes/xcschememanagement.plist ================================================ SchemeUserState AwesomeSpotlightViewDemo.xcscheme orderHint 0 SuppressBuildableAutocreation 520617601E64AA6C008689A2 primary ================================================ FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/aleksandrsosiasvili.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist ================================================ ================================================ FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/aleksandrsosiasvili.xcuserdatad/xcschemes/xcschememanagement.plist ================================================ SchemeUserState AwesomeSpotlightViewDemo.xcscheme_^#shared#^_ orderHint 0 ================================================ FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/alex.shoshiashvili.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist ================================================ ================================================ FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/alex.shoshiashvili.xcuserdatad/xcschemes/xcschememanagement.plist ================================================ SchemeUserState AwesomeSpotlightViewDemo.xcscheme orderHint 0 AwesomeSpotlightViewDemo.xcscheme_^#shared#^_ orderHint 0 ================================================ FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/macbookpro.xcuserdatad/xcschemes/AwesomeSpotlightViewDemo.xcscheme ================================================ ================================================ FILE: AwesomeSpotlightViewDemo/AwesomeSpotlightViewDemo.xcodeproj/xcuserdata/macbookpro.xcuserdatad/xcschemes/xcschememanagement.plist ================================================ SchemeUserState AwesomeSpotlightViewDemo.xcscheme orderHint 0 SuppressBuildableAutocreation 520617601E64AA6C008689A2 primary ================================================ FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/AppDelegate.h ================================================ // // AppDelegate.h // AwesomeSpotlightViewDemoObjC // // Created by FromF on 2018/08/15. // Copyright © 2018年 FromF. All rights reserved. // #import @interface AppDelegate : UIResponder @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 ================================================ ================================================ FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/Base.lproj/Main.storyboard ================================================ ================================================ FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/Info.plist ================================================ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName $(PRODUCT_NAME) CFBundlePackageType APPL CFBundleShortVersionString 1.0 CFBundleVersion 1 LSRequiresIPhoneOS UILaunchStoryboardName LaunchScreen UIMainStoryboardFile Main UIRequiredDeviceCapabilities armv7 UISupportedInterfaceOrientations UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UISupportedInterfaceOrientations~ipad UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight ================================================ FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC/ViewController.h ================================================ // // ViewController.h // AwesomeSpotlightViewDemoObjC // // Created by FromF on 2018/08/15. // Copyright © 2018年 FromF. All rights reserved. // #import @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 () @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 #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 = ""; }; 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 = ""; }; 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 = ""; }; 9DC01A9A2123B7CD006144A1 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 9DC01A9C2123B7CD006144A1 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 9DC01A9D2123B7CD006144A1 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 9DC01AA02123B7CD006144A1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 9DC01AA22123B7D0006144A1 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 9DC01AA52123B7D0006144A1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 9DC01AA72123B7D0006144A1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 9DC01AA82123B7D0006144A1 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; /* 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 = ""; }; 9DC01A8D2123B7CD006144A1 = { isa = PBXGroup; children = ( 9DC01A982123B7CD006144A1 /* AwesomeSpotlightViewDemoObjC */, 9DC01A972123B7CD006144A1 /* Products */, 2606EA6B69613F3C38C427BE /* Pods */, CB7BAF94348952E2858F9578 /* Frameworks */, ); sourceTree = ""; }; 9DC01A972123B7CD006144A1 /* Products */ = { isa = PBXGroup; children = ( 9DC01A962123B7CD006144A1 /* AwesomeSpotlightViewDemoObjC.app */, ); name = Products; sourceTree = ""; }; 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 = ""; }; CB7BAF94348952E2858F9578 /* Frameworks */ = { isa = PBXGroup; children = ( 23776EC7C46B97CB9AEEE00A /* Pods_AwesomeSpotlightViewDemoObjC.framework */, ); name = Frameworks; sourceTree = ""; }; /* 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 = ""; }; 9DC01AA42123B7D0006144A1 /* LaunchScreen.storyboard */ = { isa = PBXVariantGroup; children = ( 9DC01AA52123B7D0006144A1 /* Base */, ); name = LaunchScreen.storyboard; sourceTree = ""; }; /* 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 ================================================ ================================================ FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist ================================================ IDEDidComputeMac32BitWarning ================================================ FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC.xcodeproj/xcuserdata/alex.shoshiashvili.xcuserdatad/xcschemes/xcschememanagement.plist ================================================ SchemeUserState AwesomeSpotlightViewDemoObjC.xcscheme_^#shared#^_ orderHint 2 ================================================ FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC.xcworkspace/contents.xcworkspacedata ================================================ ================================================ FILE: AwesomeSpotlightViewDemoObjC/AwesomeSpotlightViewDemoObjC.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist ================================================ IDEDidComputeMac32BitWarning ================================================ 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 ================================================ Buttons Done value Done comment skip last step button Continue value Tap to continue comment continue button Skip value Skip comment skip button ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle/en.lproj/Localizable.plist ================================================ Buttons Done value Done comment skip last step button Continue value Tap to continue comment continue button Skip value Skip comment skip button ================================================ 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 ================================================ Buttons Done value Закрыть comment skip last step button Continue value Далее comment continue button Skip value Пропустить comment skip button ================================================ 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 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 ================================================

Platform: iOS 9+ Language: Swift 4 Cocoapods compatible License: MIT

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. ![icon](https://s8.hostingkartinok.com/uploads/images/2017/06/2de205e60758e2d620c8a9a4621f9e75.gif) ![icon](https://s8.hostingkartinok.com/uploads/images/2017/06/0bb7ff8437aac08c335f1074ef990d4e.gif) ## 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 = ""; }; 05532F17513A2F4BE63A47151CCCCF8D /* AwesomeSpotlightView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "AwesomeSpotlightView-dummy.m"; sourceTree = ""; }; 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 = ""; }; 32173174FF3F0689229601365D383D0A /* AwesomeSpotlight.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AwesomeSpotlight.swift; path = AwesomeSpotlightView/Classes/AwesomeSpotlight.swift; sourceTree = ""; }; 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 = ""; }; 4D906D829CA494984535809DAB43BADE /* AwesomeSpotlightView.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = AwesomeSpotlightView.xcconfig; sourceTree = ""; }; 516949894615FBDFB7BAA09EB416478A /* AwesomeSpotlightView.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = AwesomeSpotlightView.modulemap; sourceTree = ""; }; 6A07A823162D056BCCCEBA0CF544A791 /* AwesomeSpotlightView-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "AwesomeSpotlightView-umbrella.h"; sourceTree = ""; }; 6BFAD0DBEBDBFB478228A3B2E3B31921 /* Pods-AwesomeSpotlightViewDemoObjC-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-AwesomeSpotlightViewDemoObjC-acknowledgements.plist"; sourceTree = ""; }; 711318556B88FF6E468885198BD712A0 /* Pods-AwesomeSpotlightViewDemoObjC.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AwesomeSpotlightViewDemoObjC.release.xcconfig"; sourceTree = ""; }; 71E2DA42E2228E242C373A386DBAFB46 /* Localizator.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Localizator.swift; path = AwesomeSpotlightView/Classes/Localizator.swift; sourceTree = ""; }; 7919B21CB361FB75A797085722A89339 /* Pods-AwesomeSpotlightViewDemoObjC.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AwesomeSpotlightViewDemoObjC.debug.xcconfig"; sourceTree = ""; }; 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 = ""; }; B1056A80344113E08E5E541A32250961 /* AwesomeSpotlightView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "AwesomeSpotlightView-prefix.pch"; sourceTree = ""; }; B55DD9A4E0D4211E9C3578BC396AE7D1 /* Pods-AwesomeSpotlightViewDemoObjC-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-AwesomeSpotlightViewDemoObjC-frameworks.sh"; sourceTree = ""; }; DF17C59844D498BD143D2B1337C51C45 /* Pods-AwesomeSpotlightViewDemoObjC-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-AwesomeSpotlightViewDemoObjC-umbrella.h"; sourceTree = ""; }; DFACACEF524C4956B597E3F225273897 /* AwesomeSpotlightViewBundle.bundle */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "wrapper.plug-in"; name = AwesomeSpotlightViewBundle.bundle; path = AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle; sourceTree = ""; }; E51686376F28ACCD9676D40A6B28A057 /* Pods-AwesomeSpotlightViewDemoObjC-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-AwesomeSpotlightViewDemoObjC-dummy.m"; sourceTree = ""; }; 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 = ""; }; FFCB91E0D72F10980B9866DF52DDFE43 /* AwesomeSpotlightView-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "AwesomeSpotlightView-Info.plist"; sourceTree = ""; }; /* 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 = ""; }; 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 = ""; }; 53B0A71A77F825986EB8036903AEDB8B /* Products */ = { isa = PBXGroup; children = ( 836F15855C45068D535AA3D03619D0E3 /* AwesomeSpotlightView.framework */, 1E80B687977EF20B6E1B6046C7A863C2 /* Pods_AwesomeSpotlightViewDemoObjC.framework */, ); name = Products; sourceTree = ""; }; 70CC18D3ED5AAD157B97552B13CE309A /* Pods */ = { isa = PBXGroup; children = ( C7200A7F9D2B16E115EC46D172A70795 /* AwesomeSpotlightView */, ); name = Pods; sourceTree = ""; }; AF57F69D4F50E167FE0BDD465627CE9F /* Targets Support Files */ = { isa = PBXGroup; children = ( 500835089CF4264478EE04D41AE5C08F /* Pods-AwesomeSpotlightViewDemoObjC */, ); name = "Targets Support Files"; sourceTree = ""; }; 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 = ""; }; 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 = ""; }; CF1408CF629C7361332E53B88F7BD30C = { isa = PBXGroup; children = ( 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 1628BF05B4CAFDCC3549A101F5A10A17 /* Frameworks */, 70CC18D3ED5AAD157B97552B13CE309A /* Pods */, 53B0A71A77F825986EB8036903AEDB8B /* Products */, AF57F69D4F50E167FE0BDD465627CE9F /* Targets Support Files */, ); sourceTree = ""; }; E169A450ED27AC725DF52953F66D11E0 /* iOS */ = { isa = PBXGroup; children = ( 40CB39E715FBCDAA142E6513E126200A /* Foundation.framework */, ECF2A2B0720AE923C22BED3192888BE0 /* UIKit.framework */, ); name = iOS; sourceTree = ""; }; EEDBFCE57DFEBB9D02F3F5E8D464D9ED /* Resources */ = { isa = PBXGroup; children = ( DFACACEF524C4956B597E3F225273897 /* AwesomeSpotlightViewBundle.bundle */, ); name = Resources; sourceTree = ""; }; /* 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 ================================================ ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Pods.xcodeproj/xcuserdata/alex.shoshiashvili.xcuserdatad/xcschemes/Pods-AwesomeSpotlightViewDemoObjC.xcscheme ================================================ ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Pods.xcodeproj/xcuserdata/alex.shoshiashvili.xcuserdatad/xcschemes/xcschememanagement.plist ================================================ SchemeUserState AwesomeSpotlightView.xcscheme isShown orderHint 0 Pods-AwesomeSpotlightViewDemoObjC.xcscheme isShown orderHint 1 SuppressBuildableAutocreation ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView-Info.plist ================================================ CFBundleDevelopmentRegion en CFBundleExecutable ${EXECUTABLE_NAME} CFBundleIdentifier ${PRODUCT_BUNDLE_IDENTIFIER} CFBundleInfoDictionaryVersion 6.0 CFBundleName ${PRODUCT_NAME} CFBundlePackageType FMWK CFBundleShortVersionString 0.1.9 CFBundleSignature ???? CFBundleVersion ${CURRENT_PROJECT_VERSION} NSPrincipalClass ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView-dummy.m ================================================ #import @interface PodsDummy_AwesomeSpotlightView : NSObject @end @implementation PodsDummy_AwesomeSpotlightView @end ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView-prefix.pch ================================================ #ifdef __OBJC__ #import #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView-umbrella.h ================================================ #ifdef __OBJC__ #import #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double AwesomeSpotlightViewVersionNumber; FOUNDATION_EXPORT const unsigned char AwesomeSpotlightViewVersionString[]; ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView.modulemap ================================================ framework module AwesomeSpotlightView { umbrella header "AwesomeSpotlightView-umbrella.h" export * module * { export * } } ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/AwesomeSpotlightView/AwesomeSpotlightView.xcconfig ================================================ CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/AwesomeSpotlightView GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 OTHER_LDFLAGS = $(inherited) -framework "Foundation" -framework "UIKit" OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS PODS_BUILD_DIR = ${BUILD_DIR} PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_ROOT = ${SRCROOT} PODS_TARGET_SRCROOT = ${PODS_ROOT}/AwesomeSpotlightView PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} SKIP_INSTALL = YES ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-Info.plist ================================================ CFBundleDevelopmentRegion en CFBundleExecutable ${EXECUTABLE_NAME} CFBundleIdentifier ${PRODUCT_BUNDLE_IDENTIFIER} CFBundleInfoDictionaryVersion 6.0 CFBundleName ${PRODUCT_NAME} CFBundlePackageType FMWK CFBundleShortVersionString 1.0.0 CFBundleSignature ???? CFBundleVersion ${CURRENT_PROJECT_VERSION} NSPrincipalClass ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-acknowledgements.markdown ================================================ # Acknowledgements This application makes use of the following third party libraries: ## AwesomeSpotlightView Copyright (c) 2017 aleksandrshoshiashvili 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. Generated by CocoaPods - https://cocoapods.org ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-acknowledgements.plist ================================================ PreferenceSpecifiers FooterText This application makes use of the following third party libraries: Title Acknowledgements Type PSGroupSpecifier FooterText 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. License MIT Title AwesomeSpotlightView Type PSGroupSpecifier FooterText Generated by CocoaPods - https://cocoapods.org Title Type PSGroupSpecifier StringsTable Acknowledgements Title Acknowledgements ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-dummy.m ================================================ #import @interface PodsDummy_Pods_AwesomeSpotlightViewDemoObjC : NSObject @end @implementation PodsDummy_Pods_AwesomeSpotlightViewDemoObjC @end ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-frameworks-Debug-input-files.xcfilelist ================================================ ${PODS_ROOT}/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-frameworks.sh ${BUILT_PRODUCTS_DIR}/AwesomeSpotlightView/AwesomeSpotlightView.framework ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-frameworks-Debug-output-files.xcfilelist ================================================ ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AwesomeSpotlightView.framework ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-frameworks-Release-input-files.xcfilelist ================================================ ${PODS_ROOT}/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-frameworks.sh ${BUILT_PRODUCTS_DIR}/AwesomeSpotlightView/AwesomeSpotlightView.framework ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-frameworks-Release-output-files.xcfilelist ================================================ ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AwesomeSpotlightView.framework ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-frameworks.sh ================================================ #!/bin/sh set -e set -u set -o pipefail function on_error { echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" } trap 'on_error $LINENO' ERR if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy # frameworks to, so exit 0 (signalling the script phase was successful). exit 0 fi echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" # Used as a return value for each invocation of `strip_invalid_archs` function. STRIP_BINARY_RETVAL=0 # This protects against multiple targets copying the same framework dependency at the same time. The solution # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") # Copies and strips a vendored framework install_framework() { if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then local source="${BUILT_PRODUCTS_DIR}/$1" elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" elif [ -r "$1" ]; then local source="$1" fi local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" if [ -L "${source}" ]; then echo "Symlinked..." source="$(readlink "${source}")" fi # Use filter instead of exclude so missing patterns don't throw errors. echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" local basename basename="$(basename -s .framework "$1")" binary="${destination}/${basename}.framework/${basename}" if ! [ -r "$binary" ]; then binary="${destination}/${basename}" elif [ -L "${binary}" ]; then echo "Destination binary is symlinked..." dirname="$(dirname "${binary}")" binary="${dirname}/$(readlink "${binary}")" fi # Strip invalid architectures so "fat" simulator / device frameworks work on device if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then strip_invalid_archs "$binary" fi # Resign the code if required by the build settings to avoid unstable apps code_sign_if_enabled "${destination}/$(basename "$1")" # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then local swift_runtime_libs swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) for lib in $swift_runtime_libs; do echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" code_sign_if_enabled "${destination}/${lib}" done fi } # Copies and strips a vendored dSYM install_dsym() { local source="$1" if [ -r "$source" ]; then # Copy the dSYM into a the targets temp dir. echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" local basename basename="$(basename -s .framework.dSYM "$source")" binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" # Strip invalid architectures so "fat" simulator / device frameworks work on device if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then strip_invalid_archs "$binary" fi if [[ $STRIP_BINARY_RETVAL == 1 ]]; then # Move the stripped file into its final destination. echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" else # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" fi fi } # Copies the bcsymbolmap files of a vendored framework install_bcsymbolmap() { local bcsymbolmap_path="$1" local destination="${BUILT_PRODUCTS_DIR}" echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" } # Signs a framework with the provided identity code_sign_if_enabled() { if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then # Use the current code_sign_identity echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then code_sign_cmd="$code_sign_cmd &" fi echo "$code_sign_cmd" eval "$code_sign_cmd" fi } # Strip invalid architectures strip_invalid_archs() { binary="$1" # Get architectures for current target binary binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" # Intersect them with the architectures we are building for intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" # If there are no archs supported by this binary then warn the user if [[ -z "$intersected_archs" ]]; then echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." STRIP_BINARY_RETVAL=0 return fi stripped="" for arch in $binary_archs; do if ! [[ "${ARCHS}" == *"$arch"* ]]; then # Strip non-valid architectures in-place lipo -remove "$arch" -output "$binary" "$binary" stripped="$stripped $arch" fi done if [[ "$stripped" ]]; then echo "Stripped $binary of architectures:$stripped" fi STRIP_BINARY_RETVAL=1 } if [[ "$CONFIGURATION" == "Debug" ]]; then install_framework "${BUILT_PRODUCTS_DIR}/AwesomeSpotlightView/AwesomeSpotlightView.framework" fi if [[ "$CONFIGURATION" == "Release" ]]; then install_framework "${BUILT_PRODUCTS_DIR}/AwesomeSpotlightView/AwesomeSpotlightView.framework" fi if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then wait fi ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-resources-Debug-input-files.xcfilelist ================================================ ${PODS_ROOT}/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-resources.sh ${PODS_ROOT}/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-resources-Debug-output-files.xcfilelist ================================================ ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AwesomeSpotlightViewBundle.bundle ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-resources-Release-input-files.xcfilelist ================================================ ${PODS_ROOT}/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-resources.sh ${PODS_ROOT}/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-resources-Release-output-files.xcfilelist ================================================ ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AwesomeSpotlightViewBundle.bundle ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-resources.sh ================================================ #!/bin/sh set -e set -u set -o pipefail function on_error { echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" } trap 'on_error $LINENO' ERR if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy # resources to, so exit 0 (signalling the script phase was successful). exit 0 fi mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt > "$RESOURCES_TO_COPY" XCASSET_FILES=() # This protects against multiple targets copying the same framework dependency at the same time. The solution # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") case "${TARGETED_DEVICE_FAMILY:-}" in 1,2) TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" ;; 1) TARGET_DEVICE_ARGS="--target-device iphone" ;; 2) TARGET_DEVICE_ARGS="--target-device ipad" ;; 3) TARGET_DEVICE_ARGS="--target-device tv" ;; 4) TARGET_DEVICE_ARGS="--target-device watch" ;; *) TARGET_DEVICE_ARGS="--target-device mac" ;; esac install_resource() { if [[ "$1" = /* ]] ; then RESOURCE_PATH="$1" else RESOURCE_PATH="${PODS_ROOT}/$1" fi if [[ ! -e "$RESOURCE_PATH" ]] ; then cat << EOM error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. EOM exit 1 fi case $RESOURCE_PATH in *.storyboard) echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} ;; *.xib) echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} ;; *.framework) echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" ;; *.xcdatamodel) echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" ;; *.xcdatamodeld) echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" ;; *.xcmappingmodel) echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" ;; *.xcassets) ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") ;; *) echo "$RESOURCE_PATH" || true echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" ;; esac } if [[ "$CONFIGURATION" == "Debug" ]]; then install_resource "${PODS_ROOT}/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle" fi if [[ "$CONFIGURATION" == "Release" ]]; then install_resource "${PODS_ROOT}/AwesomeSpotlightView/AwesomeSpotlightView/Classes/AwesomeSpotlightViewBundle.bundle" fi mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" fi rm -f "$RESOURCES_TO_COPY" if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] then # Find all other xcassets (this unfortunately includes those of path pods and other targets). OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) while read line; do if [[ $line != "${PODS_ROOT}*" ]]; then XCASSET_FILES+=("$line") fi done <<<"$OTHER_XCASSETS" if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" else printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" fi fi ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC-umbrella.h ================================================ #ifdef __OBJC__ #import #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_AwesomeSpotlightViewDemoObjCVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_AwesomeSpotlightViewDemoObjCVersionString[]; ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC.debug.xcconfig ================================================ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AwesomeSpotlightView" GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AwesomeSpotlightView/AwesomeSpotlightView.framework/Headers" LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' OTHER_LDFLAGS = $(inherited) -framework "AwesomeSpotlightView" -framework "Foundation" -framework "UIKit" OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS PODS_BUILD_DIR = ${BUILD_DIR} PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_PODFILE_DIR_PATH = ${SRCROOT}/. PODS_ROOT = ${SRCROOT}/Pods ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC.modulemap ================================================ framework module Pods_AwesomeSpotlightViewDemoObjC { umbrella header "Pods-AwesomeSpotlightViewDemoObjC-umbrella.h" export * module * { export * } } ================================================ FILE: AwesomeSpotlightViewDemoObjC/Pods/Target Support Files/Pods-AwesomeSpotlightViewDemoObjC/Pods-AwesomeSpotlightViewDemoObjC.release.xcconfig ================================================ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AwesomeSpotlightView" GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AwesomeSpotlightView/AwesomeSpotlightView.framework/Headers" LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' OTHER_LDFLAGS = $(inherited) -framework "AwesomeSpotlightView" -framework "Foundation" -framework "UIKit" OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS PODS_BUILD_DIR = ${BUILD_DIR} PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_PODFILE_DIR_PATH = ${SRCROOT}/. PODS_ROOT = ${SRCROOT}/Pods ================================================ FILE: LICENSE ================================================ Copyright (c) 2017 aleksandrshoshiashvili 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: Package.swift ================================================ // swift-tools-version:5.3 import PackageDescription let package = Package( name: "AwesomeSpotlightView", platforms: [ .iOS(.v9) ], products: [ .library( name: "AwesomeSpotlightView", targets: ["AwesomeSpotlightView"]), ], targets: [ .target( name: "AwesomeSpotlightView", dependencies: [], path: "AwesomeSpotlightView/Classes/", resources: [.process("AwesomeSpotlightViewBundle.bundle")] ), ] ) ================================================ FILE: README.md ================================================

Platform: iOS 9+ Language: Swift 5 Cocoapods compatible Swift Package Manager compatible License: MIT

AwesomeSpotlightView is a nice and simple library for iOS written on Swift 5. It's highly customizable and easy-to-use tool. Works perfectly for tutorial or coach in your app. ![icon](https://github.com/aleksandrshoshiashvili/AwesomeSpotlightView/raw/master/Resources/gif.gif) ![icon](https://github.com/aleksandrshoshiashvili/AwesomeSpotlightView/raw/master/Resources/gif_1.gif) ## 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' ``` ### Swift Package Manager (SPM) To install `AwesomeSpotlightView` using [Swift Package Manager](https://swift.org/package-manager/) add `.package(name: "AwesomeSpotlightView", url: "https://github.com/aleksandrshoshiashvili/AwesomeSpotlightView.git", from: "0.1.15"),"` to your Package.swift, then follow the integration tutorial [here](https://swift.org/package-manager#importing-dependencies). ### 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)