All the Component of SwiftUI: Buttons
This is a Default Button // // ContentView.swift // Buttons // // Created by WilliamJiamin on 2024/6/20. // import SwiftUI struct ContentView: View { var body: some View { VStack…
Youtuber @CodeWithWilliamJiamin's Website
This is a Default Button // // ContentView.swift // Buttons // // Created by WilliamJiamin on 2024/6/20. // import SwiftUI struct ContentView: View { var body: some View { VStack…
// // ColourGeneratorAppApp.swift // ColourGeneratorApp // // Created by WilliamJiamin on 2024/6/19. // import SwiftUI @main struct ColourGeneratorAppApp: App { var body: some Scene { WindowGroup { ContentView() } }…
// // ContentView.swift // Mini-SwiftUI-Project-Alert // // Created by WilliamJiamin on 2024/6/18. // import SwiftUI struct ContentView: View { @State private var isShowingAlert = false var body: some View {…
// // ContentView.swift // Mini-SwiftUI-Project-Alert // // Created by WilliamJiamin on 2024/6/18. // import SwiftUI struct ContentView: View { @State private var isShowingAlert = false var body: some View {…
// // DataListView.swift // ScrollableCardView // // Created by WilliamJiamin on 2024/7/2. // import SwiftUI struct DataListView: View { // let dateFormatter: DateFormatter = { // let formatter = DateFormatter()…
Android Day 26 ToDoList App package com.williamjiamin.supertodolistapp import android.widget.Toast import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.material.Card import androidx.compose.material.FloatingActionButton import…
Android Day 25 How to pass data from one screen to another screen? We need to modify alot of thing, just be patient: package com.williamjiamin.multiscreennavigationdemo import android.os.Bundle import androidx.activity.ComponentActivity import…
Android Day 24 Multi-Screen Navigation In order to use navigation, we need to import some dependency: dependencies { val nav_version = "2.7.7" // Java language implementation implementation("androidx.navigation:navigation-fragment:$nav_version") implementation("androidx.navigation:navigation-ui:$nav_version") // Kotlin…
Android Day 23 MVVM model Intro MVVM(Model-View-ViewModel) 1.Model: Data and Logic of the App. 2.ViewModel:Handle the logic of Updating the Data.Handle the exposure of the data to the view. 3.View:…