Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

Rev 9 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 9 Rev 17
Línea 9... Línea 9...
9
import SwiftUI
9
import SwiftUI
Línea 10... Línea 10...
10
 
10
 
11
 
11
 
12
class CompanyListViewModel: ObservableObject
-
 
13
{
12
class CompanyListViewModel: ObservableObject
14
    private let appDao = AppDao.sharedInstance
-
 
15
    @Published public var companies = [CompanyModel]()
-
 
16
 
-
 
Línea 17... Línea 13...
17
    
13
{
18
    
-
 
19
    
14
    @Published public var companies = [CompanyModel]()
20
    init() {
15
    
Línea 21... Línea 16...
21
 
16
    init() {
22
        fetchAll()
17
        fetchAll()