Skip to content

Instantly share code, notes, and snippets.

@rudrankriyam
Created November 21, 2019 13:46
Show Gist options
  • Save rudrankriyam/da82d9f951b1e99d03cfbdd2263cd264 to your computer and use it in GitHub Desktop.
Save rudrankriyam/da82d9f951b1e99d03cfbdd2263cd264 to your computer and use it in GitHub Desktop.
Creating an Apple like Splash Screen in SwiftUI Information Container View
import SwiftUI
struct InformationContainerView: View {
var body: some View {
VStack(alignment: .leading) {
InformationDetailView(title: "Match", subTitle: "Match the gradients by moving the Red, Green and Blue sliders for the left and right colors.", imageName: "slider.horizontal.below.rectangle")
InformationDetailView(title: "Precise", subTitle: "More precision with the steppers to get that 100 score.", imageName: "minus.slash.plus")
InformationDetailView(title: "Score", subTitle: "A detailed score and comparsion of your gradient and the target gradient.", imageName: "checkmark.square")
}
.padding(.horizontal)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment