Skip to content

Instantly share code, notes, and snippets.

@jordansinger
Created June 29, 2020 16:09
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordansinger/1de96a22880a79eae9bb9cd76f6dca81 to your computer and use it in GitHub Desktop.
Save jordansinger/1de96a22880a79eae9bb9cd76f6dca81 to your computer and use it in GitHub Desktop.
import SwiftUI
import PlaygroundSupport
struct UserCell: View {
var body: some View {
HStack(spacing: 16) {
Image(systemName: "person.crop.circle.fill")
.font(.system(size: 48))
VStack(alignment: .leading, spacing: 2) {
Text("Full name")
.font(.system(size: 18, weight: .semibold))
Text("Username")
.font(.system(size: 18))
.foregroundColor(Color.gray)
}
Spacer()
}
.padding()
.frame(width: 375, height: 80)
.background(Color(UIColor.tertiarySystemFill))
.cornerRadius(20)
}
}
PlaygroundPage.current.setLiveView(UserCell())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment