-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made common headerView&Checked type while store comment in log
- Loading branch information
1 parent
f9a79d2
commit 9b03602
Showing
6 changed files
with
71 additions
and
51 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
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,28 @@ | ||
// | ||
// SectionHeaderView.swift | ||
// Splito | ||
// | ||
// Created by Nirali Sonani on 09/01/25. | ||
// | ||
|
||
import SwiftUI | ||
|
||
public struct SectionHeaderView: View { | ||
|
||
let text: String | ||
let font: Font | ||
let textColor: Color | ||
|
||
public init(text: String, font: Font = .subTitle3(), textColor: Color = disableText) { | ||
self.text = text | ||
self.font = font | ||
self.textColor = textColor | ||
} | ||
|
||
public var body: some View { | ||
Text(text.localized) | ||
.font(font) | ||
.foregroundStyle(textColor) | ||
.frame(maxWidth: .infinity, alignment: .leading) | ||
} | ||
} |
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
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