瀏覽代碼

ActionSheet: viewWillAppear: Call delegate headerViewTitle

(closes #487)
Soomin Lee 6 年之前
父節點
當前提交
99b6e612ea
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Sources/ActionSheet/ActionSheet.swift

+ 1 - 0
Sources/ActionSheet/ActionSheet.swift

@@ -160,6 +160,7 @@ class ActionSheet: UIViewController {
         super.viewWillAppear(animated)
         mainStackView.isHidden = true
         collectionView.reloadData()
+        headerView.title.text = delegate?.headerViewTitle?()
         updateViewConstraints()
     }