Latest 1.0
License MIT
Platforms ios 8.0, tvos 9.0, requires ARC

Badge w/ Version
Badge w/ Version

An easy to use banner view with title and message for all your iOS projects.


This is the first iteration of this library and works as expected. We needed a simple messaging system for our tvOS app and this is what we came up with. It worked so simple that we decided to share it. It doesn’t have "everything", but is pretty close. If you have any suggestions, we welcome feedback and pull requests.



pod 'SMABannerView'

Manual Installation

Include the SMABannerView.swift file in your project.


You can display the banner in as few as 2 lines.

let banner = SMABannerView(title: "Simple Title", message: "Simple message to display", view: self.view)

You can display the banner for a specific length of time.

You can also use the dismiss callback. {
  // banner has been dismissed
  banner = nil

Hide the banner when you are done.


Hide with completion.

  banner = nil

You can fully customize the banner in any way before calling show(). All of the properties are public and allow you to override the defaults to format things any way you want.

banner.titleString = "Some Title"
banner.titleFont = UIFont.systemFontOfSize(24)
banner.titleColor = UIColor.blackColor()
banner.messageString = "Some message to display"
banner.messageFont = UIFont.systemFontOfSize(18)
banner.messageColor = UIColor.blackColor()

banner.alignment = .Center // takes SMABannerAlignment enum

banner.titlePaddingTop = 15.0
banner.paddingLeft = 40.0 // title and message padding
banner.paddingRight = 40.0 // title and message padding
banner.messagePaddingBottom = 10.0

banner.animationDuration = 0.3
banner.opacity = 0.8
banner.bannerHeight = 100.0



SMABannerView requires iOS 8 or later. We will exand support as needed if it doesn’t affect anything negatively. If you need this for something older, please submit a pull request.

  • iOS 8.0 or later
  • tvOS 9.0 or later


SMABannerView was written for use in projects created by Simply Made Apps.


Bill Burgess @billburgess


SMABannerView is available under the MIT license. See the LICENSE file for more information.

What’s Next

  • Expand test coverage completely

Latest podspec

    "name": "SMABannerView",
    "version": "1.0",
    "summary": "An easy to use banner view with title and message for all your iOS projects.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Bill Burgess": "[email protected]"
    "platforms": {
        "ios": "8.0",
        "tvos": "9.0"
    "source": {
        "git": "",
        "tag": "1.0"
    "source_files": "SMABannerView/SMABannerView.swift",
    "requires_arc": true

Pin It on Pinterest

Share This