Skip to content

This is just a simple app to explore all the default SwiftUI views provided by Apple.

License

Notifications You must be signed in to change notification settings

e-b-olson/SwiftUIDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftUIDemo

This is just a simple app to explore all the default SwiftUI views provided by Apple.

Main App Demo View
SwiftUIDemo_MainApp SwiftUIDemo_AngularGradient

Motivation

The main reason for building this demo app is to familiarize myself with all the native SwiftUI views. These are the building blocks for all SwiftUI apps, so it's beneficial to know what they are and how to use them.

Getting Started

If you would like to try it out, you'll need a few things first:

  • a clone of this repo
  • xcodegen for building the project and info.plist files
  • Xcode for building the app

Once you have everything you need, just:

  1. Open a terminal and cd into the repo directory
    $ cd SwiftUIDemo
  2. Generate the project and info.plist files
    $ xcodegen
  3. Open the project in Xcode
    $ xed SwiftUIDemo.xcodeproj/
  4. Then just build and run!

Additional Resources

Be sure to check out Apple's SwiftUI View Fundamentals Documentation.

Views

Note

Not all demo views are implemented yet... but stay tuned for more demo views to come! I plan on implementing one demo view a day until they are all done.

If you'd like to contribute, feel free to fork the repo, add your code, and make a pull request. If everything looks good, your code may just make it into the project!

AngularGradient
AnyShape
AnyView
AsyncImage
Button
Canvas
Capsule
Circle
Color
ColorPicker
ContainerRelativeShape
ControlGroup
DatePicker
DefaultDateProgressLabel
DefaultShareLinkLabel
DisclosureGroup
Divider
EditButton
EditableCollectionContent
Ellipse
EllipticalGradient
EmptyView
EquatableView
ForEach
Form
Gauge
GeometryReader
Grid
GridRow
Group
GroupBox
HSplitView
HStack
Image
Label
LabeledContent
LabeledControlGroupContent
LabeledToolbarItemGroupContent
LazyHGrid
LazyHStack
LazyVGrid
LazyVStack
LinearGradient
Link
List
Menu
MenuButton
ModifiedContent
MultiDatePicker
NavigationLink
NavigationSplitView
NavigationStack
NavigationView
OffsetShape
OutlineGroup
OutlineSubgroupChildren
PasteButton
Path
Picker
PresentedWindowContent
ProgressView
RadialGradient
Rectangle
RenameButton
RotatedShape
RoundedRectangle
ScaledShape
ScrollView
ScrollViewReader
Section
SecureField
ShareLink
Slider
Spacer
Stepper
SubscriptionView
TabView
Table
Text
TextEditor
TextField
TextFieldLink
TimelineView
Toggle
TransformedShape
TupleView
VSplitView
VStack
ViewThatFits
ZStack

About

This is just a simple app to explore all the default SwiftUI views provided by Apple.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published