forked from SwiftKickMobile/SwiftMessages
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBackgroundViewable.swift
More file actions
24 lines (21 loc) · 884 Bytes
/
Copy pathBackgroundViewable.swift
File metadata and controls
24 lines (21 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//
// BackgroundViewable.swift
// SwiftMessages
//
// Created by Timothy Moose on 8/15/16.
// Copyright © 2016 SwiftKick Mobile LLC. All rights reserved.
//
import UIKit
/**
Message views that implement the `BackgroundViewable` protocol will have the
pan-to-hide gesture recognizer installed in the `backgroundView`. Message views
always span the full width of the containing view. Typically, the `backgroundView`
property defines the message view's visible region, allowing for card-style views
where the message view background is transparent and the background view is inset
from by some amount. See CardView.nib, for example.
This protocol is optional. Message views that don't implement `BackgroundViewable`
will have the pan-to-hide gesture installed in the message view itself.
*/
public protocol BackgroundViewable {
var backgroundView: UIView! { get }
}