From b745512f1df7e79fa45ef5a050f02a8c43e919e0 Mon Sep 17 00:00:00 2001 From: Cameron Sabol Date: Wed, 26 Feb 2020 09:56:58 -0800 Subject: [PATCH] Marks header labels with accessibility trait --- Stripe/STPSectionHeaderView.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Stripe/STPSectionHeaderView.m b/Stripe/STPSectionHeaderView.m index 79fb8c42758..50e2457c7db 100644 --- a/Stripe/STPSectionHeaderView.m +++ b/Stripe/STPSectionHeaderView.m @@ -23,6 +23,7 @@ - (instancetype)initWithFrame:(CGRect)frame { UILabel *label = [UILabel new]; label.numberOfLines = 0; label.lineBreakMode = NSLineBreakByWordWrapping; + label.accessibilityTraits |= UIAccessibilityTraitHeader; [self addSubview:label]; _label = label; UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];