txtodo

[DORMANT] a minimalist todo list app inspired by jeff huang
git clone git://git.figbert.com/txtodo.git
Log | Files | Refs | README

SectionLabel.swift (604B)


      1 //
      2 //  SectionLabel.swift
      3 //  txtodo
      4 //
      5 //  Created by FIGBERT on 7/28/20.
      6 //
      7 
      8 import SwiftUI
      9 
     10 struct SectionLabel: View {
     11     let text: String
     12     
     13     var body: some View {
     14         HStack {
     15             Text(NSLocalizedString(text, comment: ""))
     16                 .font(.system(size: 10, weight: .bold))
     17                 .foregroundColor(.gray)
     18                 .multilineTextAlignment(.leading)
     19             Spacer()
     20         }
     21             .horizontalPaddingOnMacOS()
     22     }
     23 }
     24 
     25 struct SectionLabel_Previews: PreviewProvider {
     26     static var previews: some View {
     27         SectionLabel(text: "example")
     28     }
     29 }