Latest 1.0.0
Homepage https://github.com/phimage/AboutWindow
License MIT
Platforms osx 10.11

AboutWindow License Platform

A sleek replacement for the otherwise bleak "About" dialog. Its nice, looks like XCode6’s one, and offers the following abilities :

  • Open the app’s website by clicking its (big) icon (in the dialog) (see Usage below)
  • Extend the dialog to show the "License Agreement", or
  • The "Acknowledgments" (see Content below),
  • Translate the button’s text (see Localization below),
  • Change the background and text colors
  • Also has an Objective C version by @perfaram (from which is derived this Swift-only version)

AboutWindow in action

Pull request welcome !

Setup

Manually

Clone this repo and add files from AboutWindow to your project.

Using cocoapods

Add pod 'AboutWindow' to your Podfile and run pod install.
Add use_frameworks! to the end of the Podfile.

Usage

For a live, detailed example, see in AboutWindowExample directory.

  1. Import AboutWindowController:

    import AboutWindow
  2. Create a property:

    var aboutWindowController: PFAboutWindowController
  3. Instantiate AboutWindow (in applicationDidFinishLaunching:, most likely) :

    self.aboutWindowController = AboutWindowController()

    You may want to personalize what’s going to show up on the window. As every property is accessible, you can tweak everything you want

    self.aboutWindowController.appURL = NSURL("http://app.company.com")
    self.aboutWindowController.appCopyright = NSAttributedString(string: "Nice Small String", attributes:[
                                                          NSForegroundColorAttributeName: NSColor.tertiaryLabelColor(),
                                                                     NSFontAttributeName: NSFont(name: "HelveticaNeue", size:11)!]
    self.aboutWindowController.appName = "About" //'cause it's shorter
  4. Create an IBAction to display the window, and bind it to its caller (usually, the "About [your app]" menu item):

    @IBAction func showAboutWindow(sender: AnyObject) {
        self.aboutWindowController.showWindow(sender)
    }
  5. You may also want the localize the buttons’ text :

    Add the following lines to your Localizable.string (below, for example, French)

    /* Version %@ (Build %@), displayed in the about window */
    "Version %@ (Build %@)" = "Version %@ (%@)";
    
    /* Caption of the 'Acknowledgments' button in the about window */
    "Credits" = "Remerciements";
    
    /* Caption of the 'License Agreement' button in the about window */
    "EULA" = "CL Utilisateur Final";

Acknowledgments

  • Thanks to @perfaram (and @SoneeJohn) for his PFAboutWindow, which served as a ground for this completely rewritten version

License (MIT)

The MIT License (MIT)

Copyright (c) 2015-2016 Perceval Faramaz
Copyright (c) 2016 Eric Marchand

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 NON INFRINGEMENT. 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.

Latest podspec

{
    "name": "AboutWindow",
    "version": "1.0.0",
    "summary": "A replacement for the 'About' dialog.",
    "description": "A sleek replacement for the otherwise bleak 'About' dialog.nIts nice, looks like xCode6's one, and offers the following abilitiesnn* Open the app's website by clicking its (big) icon (in the dialog) (see Usage below),n* Extend the dialog to show the 'License Agreement', orn* The 'Acknowledgments' (see Content below),n* Translate the button's text (see Localization below),n* Change the background and text colorsn* Open the App Store link for rating",
    "homepage": "https://github.com/phimage/AboutWindow",
    "screenshots": "https://raw.githubusercontent.com/perfaram/PFAboutWindow/master/screenshots/PFAboutWindow.gif",
    "license": "MIT",
    "authors": "Eric Marchand",
    "platforms": {
        "osx": "10.11"
    },
    "source": {
        "git": "https://github.com/phimage/AboutWindow.git",
        "tag": "1.0.0"
    },
    "source_files": "AboutWindow/**/*.{swift,xib}"
}

Pin It on Pinterest

Share This