-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
25 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// CircleContentView.swift | ||
// DSKit | ||
// | ||
// Created by Young Bin on 2023/08/15. | ||
// Copyright © 2023 team.humanwave. All rights reserved. | ||
// | ||
|
||
import Domain | ||
import SwiftUI | ||
|
||
public struct CircleContentView: View { | ||
private let metadata: CircleMetadata | ||
|
||
public init(metadata: CircleMetadata) { | ||
self.metadata = metadata | ||
} | ||
|
||
public var body: some View { | ||
VStack(spacing: 13) { | ||
metadata.icon | ||
.resizable() | ||
.frame(width: 48, height: 48) | ||
.scaledToFit() | ||
|
||
VStack(spacing: 0) { | ||
Text(metadata.keyword) | ||
.font(.Keyme.body3Semibold) | ||
|
||
Text(String(format: "%.1f", metadata.score)) | ||
.font(.Score.mypage) | ||
} | ||
} | ||
.foregroundColor(.white) | ||
} | ||
} |
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
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