Last active
          June 30, 2019 09:48 
        
      - 
      
- 
        Save yfujiki/f6b83e0210352199ecf4e12a73a5d5e9 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or 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
    
  
  
    
  | struct HeaderView: View { | |
| @State var headerText: String | |
| var body: some View { | |
| HStack { | |
| Text(headerText) | |
| .color(.white) | |
| .padding(10) | |
| } | |
| .frame(width: UIScreen.main.bounds.width, height: 44, alignment: Alignment.leading) | |
| .background(Color.gray) | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment