Rewrite AutoFill extension
This commit is contained in:
parent
7e034d9c99
commit
40ac070232
13 changed files with 609 additions and 216 deletions
22
passAutoFillExtension/Views/PasswordTableViewCell.swift
Normal file
22
passAutoFillExtension/Views/PasswordTableViewCell.swift
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
//
|
||||
// PasswordCell.swift
|
||||
// passAutoFillExtension
|
||||
//
|
||||
// Created by Sun, Mingshen on 12/31/20.
|
||||
// Copyright © 2020 Bob Sun. All rights reserved.
|
||||
//
|
||||
|
||||
import passKit
|
||||
|
||||
class PasswordTableViewCell: UITableViewCell {
|
||||
func configure(with entry: PasswordTableEntry) {
|
||||
if entry.passwordEntity.synced {
|
||||
textLabel?.text = entry.title
|
||||
} else {
|
||||
textLabel?.text = "↻ \(entry.title)"
|
||||
}
|
||||
accessoryType = .none
|
||||
detailTextLabel?.font = UIFont.preferredFont(forTextStyle: .footnote)
|
||||
detailTextLabel?.text = entry.categoryText
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue