mirror of
https://github.com/bitwarden/mobile
synced 2025-12-18 09:13:15 +00:00
Moved cells from storyboard into being managed in controller code. new ios views for tableview cells.
This commit is contained in:
17
src/iOS.Core/Views/SwitchTableViewCell.cs
Normal file
17
src/iOS.Core/Views/SwitchTableViewCell.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using UIKit;
|
||||
|
||||
namespace Bit.iOS.Core.Views
|
||||
{
|
||||
public class SwitchTableViewCell : UITableViewCell
|
||||
{
|
||||
public SwitchTableViewCell(string labelName)
|
||||
: base(UITableViewCellStyle.Default, nameof(SwitchTableViewCell))
|
||||
{
|
||||
TextLabel.Text = labelName;
|
||||
AccessoryView = Switch;
|
||||
}
|
||||
|
||||
public UISwitch Switch { get; set; } = new UISwitch();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user