Latest 1.2.1
License MIT
Platforms ios 8.0, requires ARC

PVShow Message

Font Awesome Swift

Follow me: @vaberer

I like ★. Do not forget to ★ this super convenient library.

Simple library to show custom messages with a touch event. Fully customizable via properties. If any message is currently showing and you want to show another message, it will wait until a previous message will dismiss.

Works perfectly in portrait, landscape mode and with constraints.



  • iOS 8.0+
  • Xcode 6.3



CocoaPods is a dependency manager for Cocoa projects.

CocoaPods 0.36 adds supports for Swift and embedded frameworks. You can install it with the following command:

$ gem install cocoapods

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

source ''
platform :ios, '8.0'

pod 'PVShow-Message', '~> 1.2.1'

Then, run the following command:

$ pod install

Do not forget to import to your swift files where you want to use this library:

import PVShow_Message


  1. Copy PVShowMessage.swift file into your project


Show Message

    PVShowMessage.instance.showMessage(text: "All data has been updatednYou have fresh data")

Customize your message view via these properties

        PVShowMessage.cBackgroundColor = UIColor.blackColor()
        PVShowMessage.cBorderColor = UIColor.lightGrayColor()
        PVShowMessage.cBorderWidth = 3
        PVShowMessage.cCornerRadius = 0
        PVShowMessage.cFontName = "HelveticeNeue-Light"
        PVShowMessage.cFontSize = 40
        PVShowMessage.cTextColor = UIColor.lightTextColor()
        PVShowMessage.cPositionFromEdge = 200
        PVShowMessage.cExtraShowTimeForMessage = 3
        PVShowMessage.cInitialPosition = .Top
        PVShowMessage.cAnimationDuration = 1.5

Touch event via Delegation

You can attach any identifier to the message view and it will be returned to you via a delegate method

    PVShowMessage.instance.showMessage(text: "My Text", identifier: 10)

Tell a message view who is delegate in a viewWillAppear method

override func viewWillAppear(animated: Bool) {

        PVShowMessage.instance.delegate = self

Implement PVShowMessageDelegate

    func didTapToMessage(identifier: AnyObject?) {

        println("Tapped to a message with identifier: (identifier)")

Removing messages from a queue

All messages which are going to be shown will be removed from a queue



Patrik Vaberer, [email protected]


PVShow Message is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "PVShow-Message",
    "version": "1.2.1",
    "license": "MIT",
    "summary": "Simple library to show custom message with a touch event",
    "homepage": "",
    "screenshots": "",
    "social_media_url": "",
    "authors": {
        "Patrik Vaberer": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.2.1"
    "platforms": {
        "ios": "8.0"
    "source_files": "Source/PVShowMessage.swift",
    "requires_arc": true,
    "pushed_with_swift_version": "4.0"

Pin It on Pinterest

Share This