Merge branch 'develop' of https://gitlab.verizon.com/BPHV_MIPS/vds_ios_sample into vasavk/carousel
This commit is contained in:
commit
41c56485d4
@ -717,7 +717,7 @@
|
|||||||
CODE_SIGN_IDENTITY = "Apple Development";
|
CODE_SIGN_IDENTITY = "Apple Development";
|
||||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||||
CODE_SIGN_STYLE = Manual;
|
CODE_SIGN_STYLE = Manual;
|
||||||
CURRENT_PROJECT_VERSION = 69;
|
CURRENT_PROJECT_VERSION = 70;
|
||||||
DEVELOPMENT_TEAM = "";
|
DEVELOPMENT_TEAM = "";
|
||||||
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = FCMA4QKS77;
|
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = FCMA4QKS77;
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
@ -753,7 +753,7 @@
|
|||||||
CODE_SIGN_IDENTITY = "Apple Development";
|
CODE_SIGN_IDENTITY = "Apple Development";
|
||||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||||
CODE_SIGN_STYLE = Manual;
|
CODE_SIGN_STYLE = Manual;
|
||||||
CURRENT_PROJECT_VERSION = 69;
|
CURRENT_PROJECT_VERSION = 70;
|
||||||
DEVELOPMENT_TEAM = "";
|
DEVELOPMENT_TEAM = "";
|
||||||
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = FCMA4QKS77;
|
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = FCMA4QKS77;
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"images" : [
|
"images" : [
|
||||||
{
|
{
|
||||||
"filename" : "VZ-My-Verizon-iOS-1024x1024.png",
|
"filename" : "Icon on stone.png",
|
||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"platform" : "ios",
|
"platform" : "ios",
|
||||||
"size" : "1024x1024"
|
"size" : "1024x1024"
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 94 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB |
@ -252,8 +252,16 @@ public class BaseViewController<Component: UIView>: UIViewController, Initable ,
|
|||||||
NotificationCenter.default.publisher(for: UIAccessibility.voiceOverStatusDidChangeNotification).sink { [weak self] _ in
|
NotificationCenter.default.publisher(for: UIAccessibility.voiceOverStatusDidChangeNotification).sink { [weak self] _ in
|
||||||
if UIAccessibility.isVoiceOverRunning {
|
if UIAccessibility.isVoiceOverRunning {
|
||||||
if let component = self?.component {
|
if let component = self?.component {
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
|
DispatchQueue.main.asyncAfter(deadline: .now() + 1) { [weak self] in
|
||||||
self?.loadCustomRotors()
|
guard let self else { return }
|
||||||
|
loadCustomRotors()
|
||||||
|
if let rotors = component.accessibilityCustomRotors {
|
||||||
|
if var accessibilityCustomRotors {
|
||||||
|
accessibilityCustomRotors.append(contentsOf: rotors)
|
||||||
|
} else {
|
||||||
|
accessibilityCustomRotors = rotors
|
||||||
|
}
|
||||||
|
}
|
||||||
UIAccessibility.post(notification: .screenChanged, argument: component)
|
UIAccessibility.post(notification: .screenChanged, argument: component)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -336,8 +336,7 @@ extension DatePickerViewController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func updateCalendarModel() {
|
func updateCalendarModel() {
|
||||||
component.calendarModel = .init(surface: component.surface,
|
component.calendarModel = .init(hideContainerBorder: containerBorderSwitch.isOn,
|
||||||
hideContainerBorder: containerBorderSwitch.isOn,
|
|
||||||
hideCurrentDateIndicator: hideCurrentDateIndicatorSwitch.isOn,
|
hideCurrentDateIndicator: hideCurrentDateIndicatorSwitch.isOn,
|
||||||
activeDates: activeDates,
|
activeDates: activeDates,
|
||||||
inactiveDates: inactiveDates,
|
inactiveDates: inactiveDates,
|
||||||
|
|||||||
@ -311,6 +311,7 @@ class TileletViewController: BaseViewController<Tilelet> {
|
|||||||
var backgroundColor: BackgroundColor = .black
|
var backgroundColor: BackgroundColor = .black
|
||||||
var maxWidthTextField = NumericField()
|
var maxWidthTextField = NumericField()
|
||||||
var isLinkSwitch = Toggle()
|
var isLinkSwitch = Toggle()
|
||||||
|
var descriptionIconAccessibilityTextField = TextField()
|
||||||
|
|
||||||
var gradientColorsFormStackView = FormSection().with { $0.isHidden = true }
|
var gradientColorsFormStackView = FormSection().with { $0.isHidden = true }
|
||||||
|
|
||||||
@ -402,6 +403,7 @@ class TileletViewController: BaseViewController<Tilelet> {
|
|||||||
}))
|
}))
|
||||||
append(section: descriptionIconFormStackView)
|
append(section: descriptionIconFormStackView)
|
||||||
descriptionIconFormStackView.addFormRow(label: "Icon", view: descriptionNamePickerSelectorView)
|
descriptionIconFormStackView.addFormRow(label: "Icon", view: descriptionNamePickerSelectorView)
|
||||||
|
descriptionIconFormStackView.addFormRow(label: "Accessibility", view: descriptionIconAccessibilityTextField)
|
||||||
descriptionIconFormStackView.addFormRow(label: "Size", view: descriptionIconSizePickerSelectorView)
|
descriptionIconFormStackView.addFormRow(label: "Size", view: descriptionIconSizePickerSelectorView)
|
||||||
descriptionIconFormStackView.addFormRow(label: "Color", view: descriptionIconColorPickerSelectorView)
|
descriptionIconFormStackView.addFormRow(label: "Color", view: descriptionIconColorPickerSelectorView)
|
||||||
descriptionIconTokenFormStackView.addFormRow(label: "Token", view: descriptionIconTokenColorView)
|
descriptionIconTokenFormStackView.addFormRow(label: "Token", view: descriptionIconTokenColorView)
|
||||||
@ -516,6 +518,12 @@ class TileletViewController: BaseViewController<Tilelet> {
|
|||||||
self.setDescriptionIconForm()
|
self.setDescriptionIconForm()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
descriptionIconAccessibilityTextField
|
||||||
|
.textPublisher
|
||||||
|
.sink { [weak self] text in
|
||||||
|
self?.setDescriptiveIconModel()
|
||||||
|
}.store(in: &subscribers)
|
||||||
|
|
||||||
showDirectionalIconSwitch.onChange = { [weak self] sender in
|
showDirectionalIconSwitch.onChange = { [weak self] sender in
|
||||||
guard let self else { return }
|
guard let self else { return }
|
||||||
self.setDirectionalIconForm()
|
self.setDirectionalIconForm()
|
||||||
@ -727,6 +735,11 @@ class TileletViewController: BaseViewController<Tilelet> {
|
|||||||
let iconSize = descriptionIconSizePickerSelectorView.selectedItem
|
let iconSize = descriptionIconSizePickerSelectorView.selectedItem
|
||||||
let iconName = descriptionNamePickerSelectorView.selectedItem
|
let iconName = descriptionNamePickerSelectorView.selectedItem
|
||||||
var iconColor: Tilelet.IconColor? = nil
|
var iconColor: Tilelet.IconColor? = nil
|
||||||
|
var accessibleText: String?
|
||||||
|
if let at = descriptionIconAccessibilityTextField.text, !at.isEmpty {
|
||||||
|
accessibleText = at
|
||||||
|
}
|
||||||
|
|
||||||
switch descriptionIconColorPickerSelectorView.selectedItem {
|
switch descriptionIconColorPickerSelectorView.selectedItem {
|
||||||
case .token:
|
case .token:
|
||||||
iconColor = .token(descriptionIconTokenColorView.selectedItem)
|
iconColor = .token(descriptionIconTokenColorView.selectedItem)
|
||||||
@ -735,7 +748,7 @@ class TileletViewController: BaseViewController<Tilelet> {
|
|||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
component.descriptiveIconModel = .init(name: iconName, iconColor: iconColor, size: iconSize)
|
component.descriptiveIconModel = .init(name: iconName, iconColor: iconColor, size: iconSize, accessibleText: accessibleText ?? nil )
|
||||||
}
|
}
|
||||||
|
|
||||||
func setDirectionalIconModel() {
|
func setDirectionalIconModel() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user