Latest 1.0.0
Homepage https://github.com/Centroida/SimpleOverlay
License MIT
Platforms ios 9
Authors ,

SimpleOverlay is a super simple class inheriting from UIView provided to you as a framework that helps you add a shadowed layer view with description text bubbles. The idea of these description bubbles is to help direct the user of your app on how to make use of certain buttons, labels, textfields and etc. Anything you can think of basically.

Preview

SimpleOverlay

Features

  • Easily instantiated.
  • Custom init with default values that can be updated.
  • UIView – Description coupled to avoid missing on adding a description.
  • Completion handler provided at the end to enable adding stuff precisely after SimpleOverlay has removed itself

Requirements

  • iOS 9.0+
  • Swift 3.0+

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate SimpleOverlay into your Xcode project using CocoaPods, specify it in your Podfile:

platform :ios, '9.0'
source 'https://github.com/CocoaPods/Specs.git'

use_frameworks!

target '<Your Target Project Name>' do
pod 'SimpleOverlay'
end

Alternatively:

  • Git submodule add https://github.com/Centroida/SimpleOverlay.git
  • Drag the SimpleOverlay.xcodeproj file into your Xcode project (Xcode will ask to create a workspace file if your project does not have one already)
  • Under the main app target, open the General tab and add SwiftImageCarousel under the Embedded Binaries section
  • Build the SimpleOverlay as a target before you import it
  • It is ready to be imported and used

Or

  • Download directly from the github link https://github.com/Centroida/SimpleOverlay
  • Run your project, right click on the name of your project in the files navigator and choose "Add Files to NameOfYourProject"
  • Find SimpleOverlay.xcodeproj and add it
  • Under the main app target, open the General tab and add SimpleOverlay under the Embedded Binaries section
  • Build the SimpleOverlay as a target before you import it
  • It is ready to be imported and used

Usage

Importing the framework

import SimpleOverlay

Using SimpleOverlay without setting all the variables but just the viewsDescriptionsCouples:

    /// Views declared and connected to storyboard.    
    @IBOutlet weak var viewTwo: UIView!
    @IBOutlet weak var cleanButton: UIButton!
    @IBOutlet weak var segmentedControl: UISegmentedControl!    

     override func viewDidLoad() {
        super.viewDidLoad()
        let simpleOverlayView = SimpleOverlayView(viewsDescriptionsCouples:[(viewTwo, "This is view two, cool right? This is view two, cool right? "),
                                                                            (segmentedControl, "this is segmented control"),
                                                                            (cleanButton, "this is the clean button, use it to clean stuff")],
                                                  completionHandler: nil)
        view.addSubview(simpleOverlayView)
    }

Using SimpleOverlay setting all the variables available:

    /// Views declared and connected to storyboard.    
    @IBOutlet weak var viewTwo: UIView!
    @IBOutlet weak var cleanButton: UIButton!
    @IBOutlet weak var segmentedControl: UISegmentedControl!    

     override func viewDidLoad() {
        super.viewDidLoad()
        let simpleOverlayView =  SimpleOverlayView(dismissDuration: 0.6,
                                       distanceFromScreenEdge: 67,
                                       height: 56,
                                       distanceFromViewDescribed: 22,
                                       viewsDescriptionsCouples: [(searchTextField, "This is where you can search for stores or offers 😀"),
                                                                  (settingsButton, "Tap this button check out your account details and offer history 😊"),
                                                                  (switchButton, "Tap this button to switch between stores and offers 😊")],
                                       completionHandler: { (Bool) in
                                        // Add some animation as a follow up ...
        })

         view.addSubview(simpleOverlayView)
    }

License

SwiftImageCarousel is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "SimpleOverlay",
    "version": "1.0.0",
    "summary": "SimpleOverlay is a swifty solution that helps you walk through your users when faced with stuff that is not obvious rightaway.",
    "description": "SimpleOverlay is a super simple class inheriting from UIView provided to you as a framework that helps simple walkthroughs to direct users when withing your app.",
    "authors": {
        "Deyan Aleksandrov": "[email protected]",
        "Gavril Tonev": "[email protected]"
    },
    "homepage": "https://github.com/Centroida/SimpleOverlay",
    "license": "MIT",
    "platforms": {
        "ios": "9"
    },
    "source": {
        "git": "https://github.com/Centroida/SimpleOverlay.git",
        "tag": "1.0.0"
    },
    "source_files": [
        "SimpleOverlay",
        "SimpleOverlay/SimpleOverlay/**/*.{h,swift}"
    ],
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "3"
    },
    "pushed_with_swift_version": "3.1"
}

Pin It on Pinterest

Share This