-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSLToastView.h
More file actions
35 lines (24 loc) · 919 Bytes
/
Copy pathSLToastView.h
File metadata and controls
35 lines (24 loc) · 919 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
25
26
27
28
29
30
31
32
33
34
//
// SLToastView.h
// SLToastKit
//
// Created by Gregory Combs on 7/10/16.
// Copyright (C) 2016 Gregory Combs [gcombs at gmail]
// See LICENSE.txt for details.
//
#import <UIKit/UIKit.h>
#import <SLToastKit/SLToast.h>
@class SLToastManager;
NS_ASSUME_NONNULL_BEGIN
@interface SLToastView : UIView
+ (nullable instancetype)showToastInView:(UIView *)parentView
toast:(SLToast *)toast;
+ (nullable instancetype)showToastInWindow:(UIWindow *)parentWindow
statusBarFrame:(CGRect)statusBarFrame
toast:(SLToast *)toast;
- (BOOL)showToast:(SLToast *)toast;
@property (nonatomic,strong,nullable,readonly) SLToast *toast;
@property (nonatomic,weak) SLToastManager *toastManager;
@property (nonatomic,assign) CGRect statusBarFrame; // If the parentView is a UIWindow, we'll need this
@end
NS_ASSUME_NONNULL_END