This commit is contained in:
2025-11-10 19:22:31 +08:00
parent 8069b08fab
commit 1dc9560a1f
46 changed files with 691 additions and 33 deletions

View File

@@ -179,7 +179,7 @@
- (UILabel *)peopleLabel {
if (!_peopleLabel) {
_peopleLabel = [UILabel new];
_peopleLabel.textColor = [UIColor colorWithHex:0x02BEAC];
_peopleLabel.textColor = [UIColor colorWithHex:KBColor];
_peopleLabel.font = [UIFont systemFontOfSize:10 weight:UIFontWeightRegular];
_peopleLabel.textAlignment = NSTextAlignmentCenter;
_peopleLabel.numberOfLines = 2;

View File

@@ -445,13 +445,19 @@
_dragArrowImageView.contentMode = UIViewContentModeScaleAspectFit;
// Short
_dragArrowImageView.image = [UIImage imageNamed:@"home_up_arrow"];
// /
_dragArrowImageView.userInteractionEnabled = YES;
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(kb_onTapDragArrow)];
[_dragArrowImageView addGestureRecognizer:tap];
}
return _dragArrowImageView;
}
//
- (void)kb_updateDragArrowForState:(PresentationState)state {
NSString *imgName = (state == PresentationStateMedium) ? @"home_down_arrow" : @"home_up_arrow";
// Medium Long Long
BOOL isAtTop = (state == PresentationStateMedium || state == PresentationStateLong);
NSString *imgName = isAtTop ? @"home_down_arrow" : @"home_up_arrow";
UIImage *img = [UIImage imageNamed:imgName];
if (img && self.dragArrowImageView.image != img) {
//
@@ -464,6 +470,22 @@
}
}
///
/// - Medium
/// - Short
- (void)kb_onTapDragArrow {
//
PresentationState state = self.hw_presentationState;
BOOL isAtTop = (state == PresentationStateMedium || state == PresentationStateLong);
if (isAtTop) {
// ->
[self hw_panModalTransitionTo:PresentationStateShort];
} else {
// ->
[self hw_panModalTransitionTo:PresentationStateMedium];
}
}
- (UIImageView *)leftBgImageView{
if (!_leftBgImageView) {