set color of listview table index

This commit is contained in:
Kyle Spearrin 2017-11-27 22:14:13 -05:00
parent 219c81aac5
commit 0f387a139b
1 changed files with 4 additions and 2 deletions

View File

@ -13,8 +13,10 @@ namespace Bit.iOS.Controls
{ {
base.OnElementChanged(e); base.OnElementChanged(e);
var view = e.NewElement as ListView; // primary color
if(view != null) Control.SectionIndexColor = new UIColor(red: 0.24f, green: 0.55f, blue: 0.74f, alpha: 1.0f);
if(e.NewElement is ListView view)
{ {
SetMargin(view); SetMargin(view);
} }