     sectionView.addSubview(descriptionLabel)
 
     // sectionTitleLabel to SectionView
-    NSLayoutConstraint(
-      item: sectionView,
-      attribute: .leading,
-      relatedBy: .equal,
-      toItem: sectionTitleLabel,
-      attribute: .leading,
-      multiplier: 1.0,
-      constant: -padding).isActive = true
-    NSLayoutConstraint(
-      item: sectionView,
-      attribute: .trailing,
-      relatedBy: .equal,
-      toItem: sectionTitleLabel,
-      attribute: .trailing,
-      multiplier: 1.0,
-      constant: padding).isActive = true
+    let preiOS11Behavior = {
+      NSLayoutConstraint(
+        item: sectionView,
+        attribute: .leading,
+        relatedBy: .equal,
+        toItem: sectionTitleLabel,
+        attribute: .leading,
+        multiplier: 1.0,
+        constant: -self.padding).isActive = true
+      NSLayoutConstraint(
+        item: sectionView,
+        attribute: .trailing,
+        relatedBy: .equal,
+        toItem: sectionTitleLabel,
+        attribute: .trailing,
+        multiplier: 1.0,
+        constant: self.padding).isActive = true
+    }
+    #if swift(>=3.2)
+    if #available(iOS 11.0, *) {
+      // Align to the safe area insets.
+      sectionTitleLabel.leadingAnchor
+        .constraint(equalTo: sectionView.safeAreaLayoutGuide.leadingAnchor,
+                    constant: padding).isActive = true
+      sectionTitleLabel.trailingAnchor
+        .constraint(equalTo: sectionView.safeAreaLayoutGuide.trailingAnchor,
+                    constant: -padding).isActive = true
+    } else {
+      preiOS11Behavior()
+    }
+    #else
+    preiOS11Behavior()
+    #endif
+
     NSLayoutConstraint(
       item: sectionView,
       attribute: .top,

    return additionalExamplesSectionHeader
  }

  func AdditionalExamplesSectionHeader() -> UIView {

    let sectionView = UIView()
    sectionView.backgroundColor = UIColor.white
    let lineDivider = UIView()

      multiplier: 1.0,
      constant: -padding).isActive = true

    let preiOS11Behavior = {
      NSLayoutConstraint(
        item: sectionView,
        attribute: .leading,
        relatedBy: .equal,
        toItem: sectionTitleLabel,
        attribute: .leading,
        multiplier: 1.0,
        constant: -self.padding).isActive = true
      NSLayoutConstraint(
        item: sectionView,
        attribute: .trailing,
        relatedBy: .equal,
        toItem: sectionTitleLabel,
        attribute: .trailing,
        multiplier: 1.0,
        constant: self.padding).isActive = true
    }
    // Title Label to Section View
    #if swift(>=3.2)
    if #available(iOS 11.0, *) {
      // Align to the safe area insets.
      sectionTitleLabel.leadingAnchor
        .constraint(equalTo: sectionView.safeAreaLayoutGuide.leadingAnchor,
                    constant: padding).isActive = true
      sectionTitleLabel.trailingAnchor
        .constraint(equalTo: sectionView.safeAreaLayoutGuide.trailingAnchor,
                    constant: -padding).isActive = true
    } else {
      preiOS11Behavior()
    }
    #else
    preiOS11Behavior()
    #endif

     NSLayoutConstraint(
      item: sectionView,
      attribute: .bottom,
