File tree 7 files changed +22
-5
lines changed
7 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ FOUNDATION_EXPORT double ApptentiveVersionNumber;
20
20
FOUNDATION_EXPORT const unsigned char ApptentiveVersionString[];
21
21
22
22
/* * The version number of the Apptentive SDK. */
23
- #define kApptentiveVersionString @" 5.0.0 "
23
+ #define kApptentiveVersionString @" 5.0.1 "
24
24
25
25
/* * The version number of the Apptentive API platform. */
26
26
#define kApptentiveAPIVersionString @" 9"
Original file line number Diff line number Diff line change @@ -240,6 +240,7 @@ - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cell
240
240
cell.textField .delegate = self;
241
241
cell.textField .tag = [self .viewModel textFieldTagForIndexPath: indexPath];
242
242
cell.textField .font = [self .viewModel.styleSheet fontForStyle: ApptentiveTextStyleTextInput];
243
+ cell.textField .accessibilityLabel = cell.textField .placeholder ;
243
244
cell.textField .textColor = [self .viewModel.styleSheet colorForStyle: ApptentiveTextStyleTextInput];
244
245
245
246
return cell;
@@ -337,7 +338,7 @@ - (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView
337
338
view.textLabel .text = [self .viewModel textOfQuestionAtIndex: indexPath.section];
338
339
view.textLabel .font = [self .viewModel.styleSheet fontForStyle: UIFontTextStyleBody];
339
340
view.textLabel .textColor = [self .viewModel.styleSheet colorForStyle: UIFontTextStyleBody];
340
-
341
+ view. textLabel . accessibilityHint = [ self .viewModel accessibilityHintForQuestionAtIndexPath: indexPath];
341
342
view.instructionsTextLabel .attributedText = [self .viewModel instructionTextOfQuestionAtIndex: indexPath.section];
342
343
view.instructionsTextLabel .font = [self .viewModel.styleSheet fontForStyle: ApptentiveTextStyleSurveyInstructions];
343
344
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ NS_ASSUME_NONNULL_BEGIN
45
45
- (NSString *)textOfQuestionAtIndex : (NSInteger )index ;
46
46
- (nullable NSAttributedString *)instructionTextOfQuestionAtIndex : (NSInteger )index ;
47
47
- (NSAttributedString *)placeholderTextOfAnswerAtIndexPath : (NSIndexPath *)indexPath ;
48
+ - (nullable NSString *)accessibilityHintForQuestionAtIndexPath : (NSIndexPath *)indexPath ;
48
49
- (ATSurveyQuestionType)typeOfQuestionAtIndex : (NSInteger )index ;
49
50
- (ApptentiveSurveyAnswerType)typeOfAnswerAtIndexPath : (NSIndexPath *)indexPath ;
50
51
Original file line number Diff line number Diff line change @@ -156,6 +156,15 @@ - (BOOL)answerIsSelectedAtIndexPath:(NSIndexPath *)indexPath {
156
156
return [self .selectedIndexPaths containsObject: indexPath];
157
157
}
158
158
159
+ - (nullable NSString *)accessibilityHintForQuestionAtIndexPath : (NSIndexPath *)indexPath {
160
+ ApptentiveSurveyQuestion *question = [self questionAtIndex: indexPath.section];
161
+ if (question.required ) {
162
+ return ApptentiveLocalizedString (@" required" , @" Required answer hint" );
163
+ }
164
+
165
+ return nil ;
166
+ }
167
+
159
168
- (ATSurveyQuestionType)typeOfQuestionAtIndex : (NSInteger )index {
160
169
return [self questionAtIndex: index ].type ;
161
170
}
Original file line number Diff line number Diff line change
1
+ 2018-01-30 frankus, weeebox v5.0.1
2
+ ----------------------------------
3
+ ###Improvements
4
+
5
+ - Accessibility improvements for VoiceOver.
6
+
1
7
2017-12-15 frankus, weeebox v5.0.0
2
8
----------------------------------
3
9
###Improvements
Original file line number Diff line number Diff line change 1
1
PODS:
2
- - apptentive-ios (5.0.0 )
2
+ - apptentive-ios (5.0.1 )
3
3
4
4
DEPENDENCIES:
5
5
- apptentive-ios (from `..`)
@@ -9,7 +9,7 @@ EXTERNAL SOURCES:
9
9
:path: ..
10
10
11
11
SPEC CHECKSUMS:
12
- apptentive-ios: f473d64b41e3c28a1f5824399f38f0f037303066
12
+ apptentive-ios: bfaa33a5bd2f345d697038bf81f46b3010642f26
13
13
14
14
PODFILE CHECKSUM: fb7822acbd17e9b6c60d2db75808647cc370b6a0
15
15
Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
s . name = 'apptentive-ios'
3
3
s . module_name = 'Apptentive'
4
- s . version = '5.0.0 '
4
+ s . version = '5.0.1 '
5
5
s . license = 'BSD'
6
6
s . summary = 'Apptentive Customer Communications SDK.'
7
7
s . homepage = 'https://www.apptentive.com/'
You can’t perform that action at this time.
0 commit comments