Created
June 13, 2022 00:55
-
-
Save mattyoung/7bcf0958f8737ce35d297b86bb89740f 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
| import SwiftUI | |
| struct MovieCreditRoll: View { | |
| let data = [ | |
| ["Director", "Joseph Kosinski"], | |
| ["Writers", "Jim Cash\nJack Epps Jr.\nPeter Craig\nJustin Marks\nEhren Kruger\nEric Warren Singer\nChristopher\nMcQuarrie"], | |
| ["Tom Cruise", "Capt. Pete 'Maverick' Mitchell"], | |
| ["Val Kilmer", "Adm. Tom 'Iceman' Kazansky"], | |
| ["Miles Teller", "Lt. Bradley 'Rooster' Bradshaw"], | |
| ["Jennifer Connelly", "Penny Benjamin"], | |
| ["Bashir Salahuddin", "Wo-1. Bernie 'Hondo' Coleman"], | |
| ["Jon Hamm", "Adm. Beau 'Cyclone' Simpson"], | |
| ["Charles Parnell", "Adm. Solomon 'Warlock' Bates"], | |
| ["Monica Barbaro", "Lt. Natasha 'Phoenix' Trace"], | |
| ["Lewis Pullman", "Lt. Robert 'Bob' Floyd"], | |
| ["Jay Ellis", "Lt. Reuben 'Payback' Fitch"], | |
| ["Danny Ramirez", "Lt. Mickey 'Fanboy' Garcia"], | |
| ["Glen Powell", "Lt. Jake 'Hangman' Seresin"], | |
| ["Jack Schumacher", "Lt. Neil 'Omaha' Vikander"], | |
| ["Manny Jacinto", "Lt. Billy 'Fritz' Avalone"], | |
| ["Kara Wang", "Lt. Callie 'Halo' Bassett"], | |
| ["Greg Tarzan Davis", "Lt. Javy 'Coyote' Machado"], | |
| ["Jake Picking", "Lt. Brigham 'Harvard' Lennox"], | |
| ["Raymond Lee", "Lt. Logan 'Yale' Lee"], | |
| ["Jean Louisa Kelly", "Sarah Kazansky"], | |
| ["Lyliana Wray", "Amelia"], | |
| ["Ed Harris", "Radm. Chester 'Hammer' Cain"], | |
| ["Chelsea Harris", "Admiral's Aide"], | |
| ["Darnell Kirkwood", "Comms-Crew Techs"], | |
| ["Austin Bowerman", "Comms-Crew Techs"], | |
| ["Stephanie Andrea Barron", "Comms-Crew Techs"], | |
| ["Alec Williams", "Cain's Aide"], | |
| ["Rachel Winfree", "Waitress"], | |
| ["Peter Mark Kendall", "Meek Engineer"], | |
| ["Ian Gary", "Jaded Engineer"], | |
| ] | |
| var body: some View { | |
| ScrollView { | |
| Grid(alignment: .top, horizontalSpacing: 10) { | |
| ForEach(data, id: \.self) { line in | |
| GridRow { | |
| Text(line[0]).bold() | |
| .gridColumnAlignment(.trailing) | |
| Text(line[1]) | |
| .gridColumnAlignment(.leading) | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| struct MovieCreditRoll_Previews: PreviewProvider { | |
| static var previews: some View { | |
| MovieCreditRoll() | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment