26 lines
766 B
Swift
26 lines
766 B
Swift
import SwiftUI
|
|
|
|
struct MainHomeBusinessInfoSection: View {
|
|
var body: some View {
|
|
V2ExpandableTextView(
|
|
text: I18n.Settings.companyInfo,
|
|
lineLimit: 3,
|
|
moreTitle: I18n.HomeRecommendation.more,
|
|
collapseTitle: I18n.HomeRecommendation.collapse,
|
|
font: .body5,
|
|
foregroundColor: Color.gray500
|
|
)
|
|
.frame(maxWidth: .infinity, alignment: .leading)
|
|
.padding(.horizontal, SodaSpacing.s14)
|
|
}
|
|
}
|
|
|
|
struct MainHomeBusinessInfoSection_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
MainHomeBusinessInfoSection()
|
|
.padding(.vertical, SodaSpacing.s20)
|
|
.background(Color.black)
|
|
.previewLayout(.sizeThatFits)
|
|
}
|
|
}
|