   /// Whether or not to display the hexadecimal code in the selected color preview.
   /// The default value is `true`.
   open var showHexString = true
+
+  /// Whether or not to support Smart Invert Colors on iOS 11.0+.
+  /// It is highly recommended to leave this value set to the default of true as
+  ///   inverted colors may cause unexpected behavior.
+  open var supportSmartInvertColors = true {
+    didSet {
+      if #available(iOS 11.0, *) {
+        selectedColorLabel.accessibilityIgnoresInvertColors = supportSmartInvertColors
+        colorSliderView.accessibilityIgnoresInvertColors = supportSmartInvertColors
+        colorPickerView.accessibilityIgnoresInvertColors = supportSmartInvertColors
+      } else {
+        print("\n\n[PDColorPicker] Warning: supportSmartInvertColors is only available on iOS 11.0, be sure to check availability using #available(iOS 11.0, *).\n\n")
+      }
+    }
+  }
 
   /// The font to be used on the **Cancel** button and color preview.
   ///

    let pickerView = PDColorPickerGridView()
    pickerView.delegate = self
    pickerView.dataSource = self
    return pickerView
  }()

  lazy var colorSliderView: PDColorPickerSliderView = {
    let sliderView = PDColorPickerSliderView()
    sliderView.delegate = self
    return sliderView
  }()


    label.layer.borderColor = UIColor.black.cgColor

    label.isUserInteractionEnabled = true

    if #available(iOS 11.0, *) {
      label.accessibilityIgnoresInvertColors = true
    }

    return label
  }()
