txtodo

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

FrameModifier.swift (323B)


      1 //
      2 //  FrameModifier.swift
      3 //  txtodo
      4 //
      5 //  Created by FIGBERT on 8/6/20.
      6 //
      7 
      8 import SwiftUI
      9 
     10 struct FrameModifier: ViewModifier {
     11     func body(content: Content) -> some View {
     12         #if os(macOS)
     13             return content.frame(width: 325, height: 400)
     14         #else
     15             return content
     16         #endif
     17     }
     18 }