Giter VIP home page Giter VIP logo

swiftui-kit's Introduction

SwiftUI Kit

A SwiftUI system components and interactions demo app based on iOS 17, macOS Sonoma, watchOS 10, and tvOS 17.

SwiftUI Kit

Use the SwiftUI Kit app to see how SwiftUI views appear and interact when using the system defaults. You can view the source to see how particular examples work.

Includes Buttons, Colors, Controls, Fonts, Haptics, Images, Indicators, Shapes, Text, and more.

iOS, iPadOS, macOS, watchOS, tvOS

SwiftUI Kit examples

To run

Make sure you're using Xcode 15+ as well as a device running iOS 17+. Works on iPhone, iPad, Mac, Apple Watch, and Apple TV.

Accent color

To change the accent color and see how it affects the system components, go to the AccentColor section of Assets.xcassets in Xcode. You can then change the Light and Dark accent colors that will be applied to the app.

Contributing

Please feel free to submit pull requests in order to contribute back to SwiftUI Kit. This is for the SwiftUI community!

SwiftUI Resources

  • Recreate - A video series about recreating popular UI with SwiftUI
  • Primitive - Learn SwiftUI for designers

Apple Resources

  • Apple Human Interface Guidelines - Apple’s design guidelines for creating best-in-class apps.
  • SF Symbols – Apple’s comprehensive library of vector-based symbols included in Apple’s system fonts that you can incorporate into your app.

By Jordan Singer (@jsngr)

Credit SwiftUI Apple Developer Documentation for many examples and terminology

swiftui-kit's People

Contributors

aaryankotharii avatar davidrhyswhite avatar dkhamsing avatar fradser avatar jordansinger avatar majouji avatar nef10 avatar spencerlynn avatar tbraun1551 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swiftui-kit's Issues

Image not found

mac OS 11.0 Beta (20A4300b)
Version 12.0 beta 2 (12A6163b)

Screen Shot 2020-07-10 at 23 08 44

Screen Shot 2020-07-10 at 23 13 10

feat: Add SceneKit

Feature:

  • now that SwiftUI 2.0 has SceneView supported by SceneKit, we can add a row under Maps for an example of SceneKit.

Implementation

  • All we need is a model with extension .usdz and a few lines of code to implement this feature.
    you can preview implementation in the readMe of this repository

Swiftui

Swift ui component library

TestFlight build

Any interest in a TestFlight build?

What does it look like to maintain? Would it be useful for those who don't otherwise want to build/run in Xcode?

Show code in app

The app reminds me a little bit of an app I've used before: Fiori Mentor

It offers the option to copy the code directly from within the app, see here. Maybe we could offer something similar?

Disclosure: The app was developer by my employer, however I was not involved.

Modeling

How should we be thinking about modeling the views, especially those that differ by platform and as the repo grows over time?

Could imagine the #if method getting messy.

As I was building this in the first place, I imagined making a struct to hold each grouping and an array of views inside of it. Curious if there are other suggestions and if doing this might be overkill?

macOS: first button in sidebar hidden in full screen

This might be a bug with SwiftUI itself (not the first time I’m seeing this with Sidebar(), but capturing here in case someone knows a fix.

When entering in full screen mode, the first button in the sidebar view is hidden by the toolbar.

ezgif com-video-to-gif

Set view previews to .sizeThatFits?

Love this repo – so helpful! Something Apple should provide themselves.

Previews for extracted views (like the files in the Groupings folder) are shown in an iPhone frame by default (since the scheme is set to iPhone SE) – I wonder if it would make sense to change the preview layout to .previewLayout(.sizeThatFits) for these.

Having the iPhone chrome can imply/suggest that it’s a "screen" rather than an isolated piece of UI (I can see this being confusing for someone starting out who isn’t familiar with breaking up views in multiple files).

I can create a PR for it but wanted to check first!

Updated preview would look like this:
Screen Shot 2020-07-10 at 21 37 25

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.