Added Different types of buttons in SwiftUI
import SwiftUI struct AddingButtonView: View { @State var title = “Here is my title” var body: some View { VStack
Read moreimport SwiftUI struct AddingButtonView: View { @State var title = “Here is my title” var body: some View { VStack
Read moreLazyVGrid(columns: [GridItem], alignment: .center, spacing: nil, pinnedViews: [.sectionHeaders]) { }
Read moreWe can prevent updates using .equatable modifier struct CalendarContainerView: View { @EnvironmentObject var store: CalendarStore var body: some View {
Read morelet data = [String]() ForEach(data.indices) { index in print(data[index]) }
Read moreRoundedRectangle(cornerRadius: 25.0) .fill( //Angular gradient AngularGradient(gradient: Gradient(colors: [Color.red, Color.green, Color.yellow]), center: .center, angle: .degrees(45)) ) .frame(width: 300, height: 200)
Read moreRoundedRectangle(cornerRadius: 25.0) .fill( //radial gradient RadialGradient(gradient: Gradient(colors: [Color.red, Color.green, Color.yellow]), center: .center, startRadius: 5, endRadius: 500) ) .frame(width: 300, height:
Read moreRoundedRectangle(cornerRadius: 25.0) .fill( LinearGradient(gradient: Gradient(colors: [Color.red, Color.blue]), startPoint: .leading, endPoint: .trailing) ) .frame(width: 300, height: 200)
Read moreText(“Hello, World! Hello, World! Hello, World! Hello, World! Hello, World! Hello, World! Hello, World!”) .font(.body) .fontWeight(.semibold) .bold() .underline(true, color: Color.red)
Read morevar composition = AVMutableComposition() let vidtrack = composition.tracks(withMediaType: .video)[0] let sz = vidtrack.naturalSize //set ration here let rect =
Read morevar composition = AVMutableComposition() let vidtrack = composition.tracks(withMediaType: .video)[0] let sz = vidtrack.naturalSize var trackSize = sz var videoViewSize =
Read more