Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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

Rev 11 Rev 17
Línea 19... Línea 19...
19
    private let config = [
19
    private let config = [
20
        GridItem(.flexible()),
20
        GridItem(.flexible()),
21
        GridItem(.flexible())
21
        GridItem(.flexible())
22
    ]
22
    ]
Línea 23... Línea 23...
23
    
23
    
24
    private let appDao = AppDao.sharedInstance
24
    private var appData = AppData.sharedInstance
25
    private var topicTitle : String = ""
25
    private var topicTitle : String = ""
Línea 26... Línea 26...
26
    private let capsuleUuidActive  : String
26
    private let capsuleUuidActive  : String
27
    
27
    
28
 
-
 
29
    init(preview : Bool = false)
28
 
Línea 30... Línea 29...
30
    {
29
    init(preview : Bool = false)
31
        let appData = appDao.selectOne()
30
    {
Línea 46... Línea 45...
46
    
45
    
47
    var body: some View {
46
    var body: some View {
48
        VStack(spacing: 0) {
47
        VStack(spacing: 0) {
49
            HStack {
48
            HStack {
50
                Button(action: {
-
 
51
                    var appData = appDao.selectOne()
49
                Button(action: {
52
                    appData.capsuleUuidActive = ""
50
                    appData.capsuleUuidActive = ""
53
                    appData.slideUuidActive = ""
-
 
54
                    
-
 
55
                    print("update query : 8")
51
                    appData.slideUuidActive = ""
Línea 56... Línea -...
56
                    appDao.update(model: appData)
-
 
57
 
52
                    appData.save()
58
                    
53
 
59
                    withAnimation {
54
                    withAnimation {
Línea 60... Línea -...
60
                        appNavigation.subpageActive = .topics
-
 
61
                    }
-
 
62
                    
-
 
63
                   
-
 
64
                   
-
 
65
                   
55
                        appNavigation.subpageActive = .topics
Línea 66... Línea 56...
66
                    
56
                    }
67
                    
57