Skip to content

Instantly share code, notes, and snippets.

@alyssoncm
alyssoncm / buttonAction
Created September 18, 2019 17:25
ButtonAction
struct ProfileView: View {
var body: some View {
GeometryReader { geometry in
VStack(alignment: .leading){
HStack{
Text("username")
.foregroundColor(lightBlueColor)
.fontWeight(.semibold)
.padding(.leading, 10)
@alyssoncm
alyssoncm / hanburguerButton
Created September 18, 2019 17:26
hamburguerButton
struct ProfileView: View {
var body: some View {
GeometryReader { geometry in
VStack(alignment: .leading){
HStack{
Text("username")
.foregroundColor(lightBlueColor)
.fontWeight(.semibold)
.padding(.leading, 10)
@alyssoncm
alyssoncm / spacer
Created September 18, 2019 17:27
spacer
struct ProfileView: View {
var body: some View {
GeometryReader { geometry in
VStack(alignment: .leading){
HStack{
Text("username")
.foregroundColor(lightBlueColor)
.fontWeight(.semibold)
.padding(.leading, 10)
@alyssoncm
alyssoncm / fullCode
Created September 18, 2019 17:28
fullCode
struct ProfileView: View {
var body: some View {
GeometryReader { geometry in
VStack(alignment: .leading){
HStack{
Text("username")
.foregroundColor(lightBlueColor)
.fontWeight(.semibold)
.padding(.leading, 10)
@alyssoncm
alyssoncm / HStack3
Created September 18, 2019 17:28
HStack3
HStack{
VStack{
Image("logo-social")
.resizable()
.frame(width: 90, height: 90)
.clipShape(Circle())
.shadow(radius: 3)
.overlay(Circle().stroke(Color.pink, lineWidth: 1))
Text("Your Name")
@alyssoncm
alyssoncm / HStack4
Created September 18, 2019 17:29
HStack4
struct ProfileView: View {
var body: some View {
GeometryReader { geometry in
VStack(alignment: .leading){
HStack{
Text("username")
.foregroundColor(lightBlueColor)
.fontWeight(.semibold)
.padding(.leading, 10)
@alyssoncm
alyssoncm / vstack4
Created September 18, 2019 17:30
VStack4
struct ProfileView: View {
var body: some View {
GeometryReader { geometry in
VStack(alignment: .leading){
HStack{
Text("username")
.foregroundColor(lightBlueColor)
.fontWeight(.semibold)
.padding(.leading, 10)
@alyssoncm
alyssoncm / timeline
Created September 18, 2019 17:32
Timeline
struct TimelineView: View {
let previews:[Preview] = [
Preview(id: 0, imageUrl: "1"),
Preview(id: 1, imageUrl: "2"),
Preview(id: 2, imageUrl: "3"),
Preview(id: 3, imageUrl: "4"),
Preview(id: 4, imageUrl: "5"),
Preview(id: 5, imageUrl: "6"),
Preview(id: 6, imageUrl: "7"),
@alyssoncm
alyssoncm / bottonView
Created September 18, 2019 17:33
bottonView
struct BottomView: View {
var body: some View {
HStack{
Button(action: {}){
Image("home")
.resizable()
.frame(width: 30, height: 30)
}.padding()
Spacer()
@alyssoncm
alyssoncm / fullProfileView
Created September 18, 2019 17:35
fullProfileView
import SwiftUI
struct ProfileView: View {
var body: some View {
GeometryReader { geometry in
VStack(alignment: .leading){
HStack{
Text("username")
.foregroundColor(lightBlueColor)
.fontWeight(.semibold)