Skip to content

Based on SwiftUI/Swift project app that simply is increment counter. Learning through projects with HackingwithSwift.

Notifications You must be signed in to change notification settings

MpiloNM95/Counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Counter

Simple Increment Counter App created using swift.

Day 00 of learning IOS development through youtube projects

  • Learning the swift/swiftui and xcode through youtube first and with various projects while I have free time between full stack software engineering bootcamp.
  • This is a simple increment counter which counts up by 1 increment within the app.
  • Enjoying the learning through projects from Youtube
  • Will start the 100 Days of Swift as well as the 100 Days of SwiftUI
  • Currently following the Indently Youtube channel for the next swiftui/swift projects.
import SwiftUI

struct ContentView: View {
    @State var count : Int = 0
    
    var body: some View {
        VStack {
            Text("\(count)")
                .padding().font(.system(size : 40, weight : .bold))
            
            Button("Tap me!", action: {
                self.count += 1
                print("Current tap: \(count)")
            })
        }
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}

About

Based on SwiftUI/Swift project app that simply is increment counter. Learning through projects with HackingwithSwift.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages