Created
June 29, 2020 16:09
-
-
Save jordansinger/1de96a22880a79eae9bb9cd76f6dca81 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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