damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

EndBlock.swift (471B)


      1 //
      2 //  EndBlock.swift
      3 //  damus
      4 //
      5 //  Created by William Casarin on 2022-08-08.
      6 //
      7 
      8 import SwiftUI
      9 
     10 struct EndBlock: View {
     11     let height: CGFloat
     12     
     13     init(height: Float = 10) {
     14         self.height = CGFloat(height)
     15     }
     16     
     17     var body: some View {
     18         Color.white.opacity(0)
     19             .id("endblock")
     20             .frame(height: height)
     21     }
     22 }
     23 
     24 struct EndBlock_Previews: PreviewProvider {
     25     static var previews: some View {
     26         EndBlock()
     27     }
     28 }