Skip to main content

Posts

Showing posts with the label SwiftUI

Digital Currency

  “Digital Currency” Recently, Digital Currency is proceeding, but limited to wallets for purchase. To proceed more, digital currency must be applied to assets classes. Then, paper and coins currency can be invalid. If digital currency is applied to assets and used in smartphones, various types of Bonds and Securities are possible. Digital Currency is associated with Personal Information, and it causes fear and intrust to own government for some people. This problem can be solved by fear to lose money. If paper and coins are invalid, people must use digital currency. To proceed Digital Currency, deleting trust for Bitcoin is good way. Bitcoin is used for dark money, and not in control by trustable organizations. Digital Currency by government can compete Bitcoin if the government is trustable. In addition, Bitcoin has several deep security risk by hackers. Roll back is impossible when hackers steal Bitcoin.

Animation Sample 3 with SwiftUI

 2022/2/27.  Animation Sample 3 with SwiftUI This is not animation, but picture. I made southpark animaniton like face with SwiftUI. I uploaded my code on Github. https://github.com/Kouhei-Takagi/AnimationSample3

The Timer with Swift

2020/2/16.  The Timer with Swift I was suffering about how to use timer with swift… import SwiftUI struct ContentView: View {          @State var count = 0          func timerStart() {         _ = Timer.scheduledTimer(withTimeInterval: 1, repeats: true , block:{             timer in self .count += 1         })     }          var body: some View {         VStack{             Button(action:{ self .timerStart()}) {             Text("Timer Start")         }         Text(String(count))     } } } struct ContentView_Previews: PreviewProvider {     static var previews: some View {         ContentView()     } } Above code is very easy, but reaching to it,  I was very suffered… Xcode prints too much errors…