forked from SwiftKickMobile/SwiftMessages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGalleryTableViewController.swift
30 lines (26 loc) · 1.17 KB
/
GalleryTableViewController.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// GalleryTableViewController.swift
// SwiftMessages
//
// Created by Timothy Moose on 7/30/16.
// Copyright © 2016 SwiftKick Mobile LLC. All rights reserved.
//
import UIKit
class GalleryTableViewController: UITableViewController {
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
tableView.deselectRowAtIndexPath(indexPath, animated: true)
let view = MessageView.viewFromNib(layout: .MessageView)
view.configureErrorTheme()
view.configureContent(title: "My Title", body: "This is my message body.")
var config = Configuration()
config.presentationContext = .Window(windowLevel: UIWindowLevelStatusBar)
config.preferredStatusBarStyle = .LightContent
// config.presentationContext = .Automatic
config.presentationStyle = .Top
Manager.sharedManager.add(configuration: config, view: view)
// let view2 = MessageView.instantiate(layout: .StatusLine)
// view2.configureInfoTheme()
// view2.configureContent(body: "This is a status line message.")
// Manager.sharedManager.add(configuration: config, view: view2)
}
}