Skip to content

Commit

Permalink
Renaming project
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Moya de Rivas committed Sep 4, 2018
1 parent 0c3a7cd commit 7a2be5b
Show file tree
Hide file tree
Showing 14 changed files with 116 additions and 115 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
B0EE5290213E89F7003E84EC /* ShowCase.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ShowCase.framework; sourceTree = BUILT_PRODUCTS_DIR; };
B0EE5290213E89F7003E84EC /* BubbleShowCase.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = BubbleShowCase.framework; sourceTree = BUILT_PRODUCTS_DIR; };
B0EE5293213E89F7003E84EC /* ShowCase.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ShowCase.h; sourceTree = "<group>"; };
B0EE5294213E89F7003E84EC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
B0EE529B213E8A97003E84EC /* BubbleShowCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BubbleShowCase.swift; sourceTree = "<group>"; };
Expand All @@ -32,27 +32,27 @@
B0EE5286213E89F7003E84EC = {
isa = PBXGroup;
children = (
B0EE5292213E89F7003E84EC /* ShowCase */,
B0EE5292213E89F7003E84EC /* BubbleShowCase */,
B0EE5291213E89F7003E84EC /* Products */,
);
sourceTree = "<group>";
};
B0EE5291213E89F7003E84EC /* Products */ = {
isa = PBXGroup;
children = (
B0EE5290213E89F7003E84EC /* ShowCase.framework */,
B0EE5290213E89F7003E84EC /* BubbleShowCase.framework */,
);
name = Products;
sourceTree = "<group>";
};
B0EE5292213E89F7003E84EC /* ShowCase */ = {
B0EE5292213E89F7003E84EC /* BubbleShowCase */ = {
isa = PBXGroup;
children = (
B0EE5293213E89F7003E84EC /* ShowCase.h */,
B0EE529B213E8A97003E84EC /* BubbleShowCase.swift */,
B0EE5294213E89F7003E84EC /* Info.plist */,
);
path = ShowCase;
path = BubbleShowCase;
sourceTree = "<group>";
};
/* End PBXGroup section */
Expand All @@ -69,9 +69,9 @@
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
B0EE528F213E89F7003E84EC /* ShowCase */ = {
B0EE528F213E89F7003E84EC /* BubbleShowCase */ = {
isa = PBXNativeTarget;
buildConfigurationList = B0EE5298213E89F7003E84EC /* Build configuration list for PBXNativeTarget "ShowCase" */;
buildConfigurationList = B0EE5298213E89F7003E84EC /* Build configuration list for PBXNativeTarget "BubbleShowCase" */;
buildPhases = (
B0EE528B213E89F7003E84EC /* Sources */,
B0EE528C213E89F7003E84EC /* Frameworks */,
Expand All @@ -82,9 +82,9 @@
);
dependencies = (
);
name = ShowCase;
name = BubbleShowCase;
productName = ShowCase;
productReference = B0EE5290213E89F7003E84EC /* ShowCase.framework */;
productReference = B0EE5290213E89F7003E84EC /* BubbleShowCase.framework */;
productType = "com.apple.product-type.framework";
};
/* End PBXNativeTarget section */
Expand All @@ -102,7 +102,7 @@
};
};
};
buildConfigurationList = B0EE528A213E89F7003E84EC /* Build configuration list for PBXProject "ShowCase" */;
buildConfigurationList = B0EE528A213E89F7003E84EC /* Build configuration list for PBXProject "BubbleShowCase" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
Expand All @@ -114,7 +114,7 @@
projectDirPath = "";
projectRoot = "";
targets = (
B0EE528F213E89F7003E84EC /* ShowCase */,
B0EE528F213E89F7003E84EC /* BubbleShowCase */,
);
};
/* End PBXProject section */
Expand Down Expand Up @@ -272,7 +272,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = ShowCase/Info.plist;
INFOPLIST_FILE = BubbleShowCase/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -299,7 +299,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = ShowCase/Info.plist;
INFOPLIST_FILE = BubbleShowCase/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -317,7 +317,7 @@
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
B0EE528A213E89F7003E84EC /* Build configuration list for PBXProject "ShowCase" */ = {
B0EE528A213E89F7003E84EC /* Build configuration list for PBXProject "BubbleShowCase" */ = {
isa = XCConfigurationList;
buildConfigurations = (
B0EE5296213E89F7003E84EC /* Debug */,
Expand All @@ -326,7 +326,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
B0EE5298213E89F7003E84EC /* Build configuration list for PBXNativeTarget "ShowCase" */ = {
B0EE5298213E89F7003E84EC /* Build configuration list for PBXNativeTarget "BubbleShowCase" */ = {
isa = XCConfigurationList;
buildConfigurations = (
B0EE5299213E89F7003E84EC /* Debug */,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "BubbleShowCase"
s.version = "0.0.1"
s.version = "0.0.3"
s.summary = "A wonderful way to show case your users your App features"

s.description = <<-DESC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,42 +9,42 @@
import UIKit

/**
The delegate of ShowCase must adopt the ShowCaseDelegate protocol. Optional methods let the delegate know when the show case appears and dismisses and when some of the most common gestures are recognized by the target.
The delegate of BubbleShowCase must adopt the BubbleShowCaseDelegate protocol. Optional methods let the delegate know when the show case appears and dismisses and when some of the most common gestures are recognized by the target.
*/
@objc public protocol ShowCaseDelegate: class {
@objc public protocol BubbleShowCaseDelegate: class {

/// Tells the delegate the show case is going to appear into the screen
@objc optional func showCaseWillTransitionIntoScreen(_ showCase: ShowCase)
@objc optional func bubbleShowCaseWillTransitionIntoScreen(_ bubbleShowCase: BubbleShowCase)

/// Tells the delegate appeared into the screen
@objc optional func showCaseDidTransitionIntoScreen(_ showCase: ShowCase)
@objc optional func bubbleShowCaseDidTransitionIntoScreen(_ bubbleShowCase: BubbleShowCase)

/// Tells the delegate the show case is going to be removed from the screen
@objc optional func showCaseWillDismiss(_ showCase: ShowCase)
@objc optional func bubbleShowCaseWillDismiss(_ bubbleShowCase: BubbleShowCase)

/// Tells the delegate the show case was removed from the screen
@objc optional func showCaseDidDismiss(_ showCase: ShowCase)
@objc optional func bubbleShowCaseDidDismiss(_ bubbleShowCase: BubbleShowCase)

/// Tells the delegate the target was tapped
@objc optional func showCase(_ showCase: ShowCase, didTap target: UIView!, gestureRecognizer: UITapGestureRecognizer)
@objc optional func bubbleShowCase(_ bubbleShowCase: BubbleShowCase, didTap target: UIView!, gestureRecognizer: UITapGestureRecognizer)

/// Tells the delegate the target was double tapped
@objc optional func showCase(_ showCase: ShowCase, didDoubleTap target: UIView!, gestureRecognizer: UITapGestureRecognizer)
@objc optional func bubbleShowCase(_ bubbleShowCase: BubbleShowCase, didDoubleTap target: UIView!, gestureRecognizer: UITapGestureRecognizer)

/// Tells the delegate the target was swiped leftwards
@objc optional func showCase(_ showCase: ShowCase, didSwipeLeft target: UIView!, gestureRecognizer: UISwipeGestureRecognizer)
@objc optional func bubbleShowCase(_ bubbleShowCase: BubbleShowCase, didSwipeLeft target: UIView!, gestureRecognizer: UISwipeGestureRecognizer)

/// Tells the delegate the target was swiped rightwards
@objc optional func showCase(_ showCase: ShowCase, didSwipeRight target: UIView!, gestureRecognizer: UISwipeGestureRecognizer)
@objc optional func bubbleShowCase(_ bubbleShowCase: BubbleShowCase, didSwipeRight target: UIView!, gestureRecognizer: UISwipeGestureRecognizer)

/// Tells the delegate the target was swiped upwards
@objc optional func showCase(_ showCase: ShowCase, didSwipeUp target: UIView!, gestureRecognizer: UISwipeGestureRecognizer)
@objc optional func bubbleShowCase(_ bubbleShowCase: BubbleShowCase, didSwipeUp target: UIView!, gestureRecognizer: UISwipeGestureRecognizer)

/// Tells the delegate the target was swiped downwards
@objc optional func showCase(_ showCase: ShowCase, didSwipeDown target: UIView!, gestureRecognizer: UISwipeGestureRecognizer)
@objc optional func bubbleShowCase(_ bubbleShowCase: BubbleShowCase, didSwipeDown target: UIView!, gestureRecognizer: UISwipeGestureRecognizer)

/// Tells the delegate the target was long pressed
@objc optional func showCase(_ showCase: ShowCase, didLongPress target: UIView!, gestureRecognizer: UILongPressGestureRecognizer)
@objc optional func bubbleShowCase(_ bubbleShowCase: BubbleShowCase, didLongPress target: UIView!, gestureRecognizer: UILongPressGestureRecognizer)
}

/**
Expand All @@ -54,7 +54,7 @@ This so called show case obscurs the scene, pops up above any other view in the
# Example #
````
...
let showCase = ShowCase(target: myBarButton, label: "BarButtonShowCase")
let showCase = BubbleShowCaseShow(target: myBarButton, label: "BarButtonShowCase")
showCase.titleText = "You know what?"
showCase.descriptionText = "You can do amazing things if you tap on this navbar button"
showCase.image = UIImage(named: "show-case-bar-button")
Expand All @@ -65,7 +65,7 @@ showCase.show()
````

*/
public class ShowCase: UIView {
public class BubbleShowCase: UIView {

/**
It indicates the direction the show case should point to. There are 6 options:
Expand Down Expand Up @@ -162,7 +162,7 @@ public class ShowCase: UIView {
public var isCrossDismissable = true { didSet { cross?.isHidden = !isCrossDismissable } }

/// The object that acts as the delegate of a Show Case. The delegate is not retained and is therefore qualified as *weak*.
public weak var delegate: ShowCaseDelegate?
public weak var delegate: BubbleShowCaseDelegate?

/**
Direction of the arrow the show case points to. There are 6 possible values.
Expand Down Expand Up @@ -207,14 +207,14 @@ public class ShowCase: UIView {
private var screenWindow: UIWindow { return UIApplication.shared.keyWindow! }

/******************* ID ***********************/
private(set) var label: String?
public private(set) var label: String?

/***************** LAYERS *********************/
private var crossLayer: CAShapeLayer?
private var arrowLayers: [CAShapeLayer]?

/***************** CONCAT *********************/
fileprivate var nextShowCase: ShowCase?
fileprivate var nextShowCase: BubbleShowCase?

//MARK: Initializers

Expand Down Expand Up @@ -334,7 +334,7 @@ public class ShowCase: UIView {
//MARK: Public Methods

/// Dismisses the show case out of the screen with an animation.
public func dimiss() {
public func dismiss() {
animateDisappearance()
}

Expand All @@ -350,13 +350,13 @@ public class ShowCase: UIView {
}

/// Call this method to concat a show case. It will be automatically displayed after this is completed.
public func concat(showCase: ShowCase) {
self.nextShowCase = showCase
public func concat(bubbleShowCase: BubbleShowCase) {
self.nextShowCase = bubbleShowCase
}

/// Displays the show case after the one passed as argument has finished.
public func show(after showCase: ShowCase) {
showCase.nextShowCase = self
public func show(after bubbleShowCase: BubbleShowCase) {
bubbleShowCase.nextShowCase = self
}

//MARK: Override
Expand Down Expand Up @@ -460,20 +460,20 @@ public class ShowCase: UIView {

// Animates the appearance of both the show case and its subviews
private func animateDisappearance() {
delegate?.showCaseWillDismiss?(self)
delegate?.bubbleShowCaseWillDismiss?(self)
nextShowCase?.show()
UIView.animate(withDuration: 0.4, animations: { [weak self] in
self?.alpha = 0
}, completion: { [weak self] _ in
guard let `self` = self else { return }
self.delegate?.showCaseDidDismiss?(self)
self.delegate?.bubbleShowCaseDidDismiss?(self)
self.removeFromSuperview()
})
}

// Animates the removal of the show case out of the screen
private func animateAppearance() {
delegate?.showCaseWillTransitionIntoScreen?(self)
delegate?.bubbleShowCaseWillTransitionIntoScreen?(self)
alpha = 0
bubble.alpha = 0
screenshotContainer?.alpha = 0
Expand All @@ -490,7 +490,7 @@ public class ShowCase: UIView {
self?.bubble.transform = .identity
}, completion: { [weak self] _ in
guard let `self` = self else { return }
self.delegate?.showCaseDidTransitionIntoScreen?(self)
self.delegate?.bubbleShowCaseDidTransitionIntoScreen?(self)
UIView.animate(withDuration: 0.4, delay: 0, options: [.autoreverse, .repeat, .allowUserInteraction], animations: { [weak self] in
self?.screenshotContainer?.transform = CGAffineTransform(scaleX: 1.05, y: 1.05)
}, completion: nil)
Expand Down Expand Up @@ -779,49 +779,49 @@ public class ShowCase: UIView {
// Screenshot was tapped
@objc private func targetDidTap(gestureRecognizer: UIGestureRecognizer) {
guard let tapGestureRecognizer = gestureRecognizer as? UITapGestureRecognizer else { return }
delegate?.showCase?(self, didTap: target, gestureRecognizer: tapGestureRecognizer)
delegate?.bubbleShowCase?(self, didTap: target, gestureRecognizer: tapGestureRecognizer)
}

// Screenshot was double long pressed
@objc private func targetDidLongPress(gestureRecognizer: UIGestureRecognizer) {
guard let longPressGestureRecognizer = gestureRecognizer as? UILongPressGestureRecognizer else { return }
guard longPressGestureRecognizer.state == .ended else { return }
delegate?.showCase?(self, didLongPress: target, gestureRecognizer: longPressGestureRecognizer)
delegate?.bubbleShowCase?(self, didLongPress: target, gestureRecognizer: longPressGestureRecognizer)
}

// Screenshot was double tapped
@objc private func targetDidDoubleTap(gestureRecognizer: UIGestureRecognizer) {
guard let tapGestureRecognizer = gestureRecognizer as? UITapGestureRecognizer else { return }
delegate?.showCase?(self, didDoubleTap: target, gestureRecognizer: tapGestureRecognizer)
delegate?.bubbleShowCase?(self, didDoubleTap: target, gestureRecognizer: tapGestureRecognizer)
}

// Screenshot was double swiped leftwards
@objc private func targetDidSwipeLeft(gestureRecognizer: UIGestureRecognizer) {
guard let swipeGestureRecognizer = gestureRecognizer as? UISwipeGestureRecognizer else { return }
delegate?.showCase?(self, didSwipeLeft: target, gestureRecognizer: swipeGestureRecognizer)
delegate?.bubbleShowCase?(self, didSwipeLeft: target, gestureRecognizer: swipeGestureRecognizer)
}

// Screenshot was double swiped rightwards
@objc private func targetDidSwipeRight(gestureRecognizer: UIGestureRecognizer) {
guard let swipeGestureRecognizer = gestureRecognizer as? UISwipeGestureRecognizer else { return }
delegate?.showCase?(self, didSwipeRight: target, gestureRecognizer: swipeGestureRecognizer)
delegate?.bubbleShowCase?(self, didSwipeRight: target, gestureRecognizer: swipeGestureRecognizer)
}

// Screenshot was double swiped downwards
@objc private func targetDidSwipeDown(gestureRecognizer: UIGestureRecognizer) {
guard let swipeGestureRecognizer = gestureRecognizer as? UISwipeGestureRecognizer else { return }
delegate?.showCase?(self, didSwipeDown: target, gestureRecognizer: swipeGestureRecognizer)
delegate?.bubbleShowCase?(self, didSwipeDown: target, gestureRecognizer: swipeGestureRecognizer)
}

// Screenshot was double swiped upwards
@objc private func targetDidSwipeUp(gestureRecognizer: UIGestureRecognizer) {
guard let swipeGestureRecognizer = gestureRecognizer as? UISwipeGestureRecognizer else { return }
delegate?.showCase?(self, didSwipeUp: target, gestureRecognizer: swipeGestureRecognizer)
delegate?.bubbleShowCase?(self, didSwipeUp: target, gestureRecognizer: swipeGestureRecognizer)
}

//MARK: Embed subviews

// Embeds the showCase in the application window
// Embeds the show case in the application window
private func embedInSuperView() {
self.translatesAutoresizingMaskIntoConstraints = false
screenWindow.addSubview(self)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions Sample/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- BubbleShowCase (0.0.1)
- BubbleShowCase (0.0.2)

DEPENDENCIES:
- BubbleShowCase
Expand All @@ -9,7 +9,7 @@ SPEC REPOS:
- BubbleShowCase

SPEC CHECKSUMS:
BubbleShowCase: 29c92e692b7b6ea1b54063efcbe1fa0157098436
BubbleShowCase: e9ae06c545649764b81507fc916251a60cc9e070

PODFILE CHECKSUM: c9f2160adbf20d26d642865800eac30cde2a746c

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions Sample/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7a2be5b

Please sign in to comment.