Zstack button circle (2020)

Time:2021-5-11

This paper introduces the making process of round text button
Technology used

code

import SwiftUI

struct ContentView: View {
    var body: some View {
          Button(action: {
              }){
                  ZStack{
                      Circle()
                      .frame(width: 100, height: 100)
                      .foregroundColor(.blue)
                    Text("Press me")
                        .foregroundColor(.white)
                  }
              }
    }
}

effect

Zstack button circle (2020)

More swiftui tutorials and code focus columns

  • Please pay attention to my column icloudend, swiftui tutorial and source code

Recommended Today

What is “hybrid cloud”?

In this paper, we define the concept of “hybrid cloud”, explain four different cloud deployment models of hybrid cloud, and deeply analyze the industrial trend of hybrid cloud through a series of data and charts. 01 introduction Hybrid cloud is a computing environment that integrates multiple platforms and data centers. Generally speaking, hybrid cloud is […]