txtodo

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

HomeHeaderView.swift (545B)


      1 //
      2 //  HomeHeaderView.swift
      3 //  txtodo
      4 //
      5 //  Created by FIGBERT on 8/8/20.
      6 //
      7 
      8 import SwiftUI
      9 
     10 struct HomeHeaderView: View {
     11     var body: some View {
     12         Text({ () -> String in
     13             let formatter = DateFormatter()
     14             formatter.dateStyle = .long
     15             return formatter.string(from: Date())
     16         }())
     17             .font(.system(size: 20, weight: .bold))
     18             .padding(.horizontal)
     19     }
     20 }
     21 
     22 struct HomeHeaderView_Previews: PreviewProvider {
     23     static var previews: some View {
     24         HomeHeaderView()
     25     }
     26 }