Skip to content

Instantly share code, notes, and snippets.

@vikdenic
Last active June 12, 2019 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vikdenic/988a85bd5801b23ae578db8d5024aba4 to your computer and use it in GitHub Desktop.
Save vikdenic/988a85bd5801b23ae578db8d5024aba4 to your computer and use it in GitHub Desktop.
Intro to SwiftUI
struct RoomDetail : View {
let room: Room
@State private var zoomed = false
var body: some View {
Image(room.imageName)
.resizable()
.aspectRatio(contentMode: .fit)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment