Files
featherVoice/TUIKit/TIMCommon/CommonModel/TUIFloatViewController.h
2025-08-08 10:49:36 +08:00

55 lines
1.6 KiB
Objective-C

//
// TUIFloatViewController.h
// TIMCommon
//
// Created by wyl on 2023/1/16.
// Copyright © 2023 Tencent. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@protocol TUIFloatSubViewControllerProtocol <NSObject>
@optional
@property(nonatomic, copy) void (^floatDataSourceChanged)(NSArray *arr);
- (void)floatControllerLeftButtonClick;
- (void)floatControllerRightButtonClick;
@end
@interface TUIFloatTitleView : UIView
@property(nonatomic, strong) UIButton *leftButton;
@property(nonatomic, strong) UIButton *rightButton;
@property(nonatomic, copy) void (^leftButtonClickCallback)(void);
@property(nonatomic, copy) void (^rightButtonClickCallback)(void);
@property(nonatomic, strong) UILabel *titleLabel;
@property(nonatomic, strong) UILabel *subTitleLabel;
- (void)setTitleText:(NSString *)mainText subTitleText:(NSString *)secondText leftBtnText:(NSString *)leftBtnText rightBtnText:(NSString *)rightBtnText;
@end
@interface TUIFloatViewController : UIViewController
@property(nonatomic, strong) TUIFloatTitleView *topGestureView;
@property(nonatomic, strong) UIImageView *topImgView;
@property(nonatomic, strong) UIView *containerView;
@property(nonatomic, strong) UIViewController<TUIFloatSubViewControllerProtocol> *childVC;
- (void)updateSubContainerView;
- (void)setnormalTop;
- (void)setNormalBottom;
- (void)appendChildViewController:(UIViewController<TUIFloatSubViewControllerProtocol> *)vc topMargin:(CGFloat)topMargin;
- (void)floatDismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion;
@end
NS_ASSUME_NONNULL_END