Latest 2.0.2
Homepage https://github.com/cuzv/Popover
License MIT
Platforms ios 8.0, requires ARC
Authors

Popover

Popover is an UIPopoverController like control for iOS.

How does it look like?

How to use

import PopoverSwift

// In view controller
let image = UIImage(named: "collection_hightlight")
let item0 = PopoverItem(title: "发起群聊", image: image) { debugPrint($0.title) }
let item1 = PopoverItem(title: "添加胖友", image: image) { debugPrint($0.title) }
let item2 = PopoverItem(title: "扫一扫", image: image) { debugPrint($0.title) }
let item3 = PopoverItem(title: "收付款", image: image) { debugPrint($0.title) }
let items = [item0, item1, item2, item3]

let controller = PopoverController(items: items, fromView: rightTopButton, direction: .down, style: .withImage)
popover(controller)        

Notice

  • v0.x for swift 2.2
  • v1.x for swift2.3
  • v2.x for swift3.x

Latest podspec

{
    "name": "PopoverSwift",
    "version": "2.0.2",
    "license": "MIT",
    "summary": "PopoverSwift is an UIPopoverController like control for iOS.",
    "homepage": "https://github.com/cuzv/Popover",
    "authors": {
        "Moch Xiao": "[email protected]"
    },
    "source": {
        "git": "https://github.com/cuzv/Popover.git",
        "tag": "2.0.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "PopoverSwift/Sources/*.swift",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This