Code Monkey home page Code Monkey logo

swiftpamphletapp's Introduction

戴铭的 Swift 小册子

越来越多同学打算开始用 Swift 来开发了,可很多人以前都没接触过 Swift。这篇戴铭的 Swift 小册子 · 戴铭的博客 - 星光社和我以前文章不同的是,本篇只是面向 Swift 零基础的同学,内容主要是一些直接可用的小例子,例子可以直接在工程中用或自己调试着看。

记得以前 PHP 有个 chm 的手册,写的很简单,但很全,每个知识点都有例子,社区版每个知识点下面还有留言互动。因此,我弄了个 Swift 的手册,是个 macOS 程序。建议使用我开发的这个 macOS 程序来浏览,使用方法是:

以下可以不用进入Xcode设置开发人员帐号并完成编译

  • 可使用compile.command编译手册程序,无需开启Xcode设置个人开发帐号,只需在SwiftPamphletAppConfig.swift 里 gitHubAccessToken 加入你的 GitHub Access Token,完成后连点compile.command两下等待作业完成。Xcode 和 macOS 都需要升到最新版。GitHub Access Token 在 Personal Access Tokens 这里获取,scope 勾上 repo 和 user。
  • 或使用Github action workflow 编译,无需在本地操作、也无需开启Xcode设置个人开发帐号,只需设置personal access token(PAT)在repository设定中action secrets,并命名为PAT。Frok此repository,设置PAT,手动启用action,等候约3分钟即可下载档案,往后专案更新时,只需fetch and merge,action会自动进行。

感谢@powenn 做的 GitHub Actions workflow,使用说明如下: Requires storaging PAT to actions secrets and name it to PAT

  • Fork this repository.
  • Go to get a Personal Access Token(PAT) if you haven't done it yet.(GitHub Access Token 在Personal Access Tokens这里获取,scope 勾上 repo 和 user。)
  • Set your token in action secrets ,and name it to PAT.
  • Get the compiled app package after Github action complete.

While project update ,you won't need to compile it manually in local, only need to fetch and merge commits and wait for about 3 minutes then download it

image image

程序截图如下: 01 02 03 04 05 06 07

这个程序是Swift写的,按照声明式UI,响应式编程范式开发的,源码也可以看看。与其讲一堆,不如调着试。

swiftpamphletapp's People

Contributors

cczallen avatar kam-to avatar ming1016 avatar powenn avatar sinter0 avatar

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.