[+] Display family name in account vc

This commit is contained in:
Hykilpikonna
2021-01-24 20:07:55 -05:00
parent e9387de879
commit cb7845499d
2 changed files with 62 additions and 41 deletions
+9 -1
View File
@@ -167,8 +167,14 @@ class ManageVC: UIViewController
func display()
{
lUsername.text = localStorage.string(forKey: "name")
// TODO: Correct join date
// TODO: Implement join date (not important)
lJoinDate.text = localStorage.string(forKey: "id")
// Display family name
if let family = localStorage.object(forKey: "family") as? Family
{
lCurrentFamily.text = family.name
}
}
/**
@@ -198,6 +204,8 @@ class ManageVC: UIViewController
*/
class FamilyVC: UIViewController
{
// No family view - prompt to create/join a family
@IBOutlet weak var noFamilyView: UIView!
var createMode: Bool!
@IBAction func btnCreate(_ sender: Any)