Giter Site home page Giter Site logo

docs's Introduction

๐Ÿป SwiftOnTap

Complete SwiftUI Docs with Examples.

Get Started | How It Works | Add Docs


Get Started

To get started,

  1. Go to swiftontap.com ๐Ÿ‘‰.
  2. Press / and search for a struct, enum, func, or any other SwiftUI symbol.
  3. Press return.

We've got it all on tap. ๐Ÿšฐ๐Ÿป


If you're new to SwiftUI ๐Ÿค“

We get it, docs are overwhelming at first. To start, we recommend these resources (in order!)

  1. Apple's Swift book (if you're new to the language)
  2. Apple's SwiftUI tutorials, which are quite good!
  3. SwiftOnTap (these docs) once you get moving ๐Ÿšด

How It Works

Who wrote all these docs?

A bunch of us SwiftUI developers have been hard at work filling Apple's documentation hole ๐Ÿ•ณ. You can also edit these docs!


Where do the docs live?

All the docs live in one file called SwiftUI.swift. It's just a regular .swift file with lots of documentation comments ๐Ÿง‘โ€๐Ÿ’ป. Whenever anyone edits this file on GitHub, we automatically scan for the comments. Then it goes live to swiftontap.com!


Could this work for any .swift file?

Theoretically, yes! We've just been focused writing SwiftUI docs for now. Let us know ๐Ÿ“ง if you want to generate your own sweet documentation site.


Add Docs

To add or edit docs,

  1. Open a pull request from github.com/SwiftOnTap/Docs. (See here to learn how!)
  2. See this Apple guide for writing great documentation comments.
  3. Sit back ๐Ÿง˜, and watch your work go live!

docs's People

Contributors

a-moss avatar alexfine avatar andybezaire avatar benj-o avatar blsage avatar denisenepraunig avatar eawad1 avatar ebelinski avatar egrossable avatar elizcordo avatar emma-k-alexandra avatar ice-cream-coder avatar jrames avatar kickbell avatar martinw avatar paxos avatar vmanot avatar ysmaliak 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

docs's Issues

Post-shutdown: build instructions?

I can't find any hints on what tool is used from the web archives. There are no leads in the Github workflow either:

https://github.com/SwiftOnTap/Docs/blob/a6eec52ae9f85ee59265e6566bcb84f53ac6b729/.github/workflows/deploy-prod.yml#L24C1-L27C76

The existing tools are:

  • DocC, which seems to only supports packages and frameworks (the documentation is ironically worse than for SwiftUI)
  • Swift-Doc, which is abandoned, the repo archived recently. The brew formula fails to build (seems like they used a private symbol), and I don't think its worth the effort to debug.

The only solution I can think of is creating a dummy package from which the documentation can be generated with DocC. This is working against the tools though, and I would like to avoid this.

Has anyone found a solution to build the documentation since https://SwiftOnTap.com shut down?

The relationship between the website and SwiftUI.swift main file is confusing

TL;DR

I would like to contribute, but I am not sure how exactly the SwiftUI.swift translates into the website.

In the SwiftUI.swift file, it seems like there is an extension for every single existing Swift API, with copied paste documentation from Apple's Documentation. Obviously, the point of this project is to replace them with better, detailed, step by step documentation. But not all the methods in SwiftUI.swift shows up on the website. Will they automatically show up once the documentation is edited, or is this a manual process?

By the way, should we break up the SwiftUI.swift file into subfiles, organizing by the SwiftUI component type? Because it is kind of painful when all the previews on Github doesn't work.

Very nice documentation, but expected to add MacOS support.

On macOS, some SwiftUI controls are displayed differently, and there are also some controls that can only be used on their respective platforms on macOS and iOS. I hope they can be more comprehensively reflected in the document.

such as:

#if os(macOS)
Settings {
Text("Settings here.")
}
#endif

English is not my native language; please excuse typing errors.

Dark Mode

Hi

I am iOS developer and I saw swiftontap.com new.
Its a great documentation tool and helped me a lot.
Thank you very much for your works.

Also I have suggestion to add Dark Mode support on https://swiftontap.com
Many developers use the dark mode and it is very difficult to focus on a light background.
Thanks

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.