Giter VIP home page Giter VIP logo

swiftui-login-page-with-leancloud's Introduction

SwiftUI Login Page with LeanCloud

一份使用 LeanCloud 服务实现的、具有「登录注册功能」的 SwiftUI 代码

1 功能

  • 用户注册
  • 用户登录
  • 密码找回
  • 手机号验证
  • 手机号登录(Todo)

注意:仅支持 iOS 14.0 以上

2 演示

3 使用

  1. 下载项目
  2. 添加依赖 在 File > Swift Packages > Add Package Dependency... 中加入 LeanCloud 的 URL:https://github.com/leancloud/swift-sdk,一路确认稍等片刻即可。
  3. 修改配置 找到 SwiftUILoginPageWithLeanCloud/SwiftUILoginPageWithLeanCloud/SwiftUILoginPageWithLeanCloudApp.swift 文件的 init() 代码,修改 LeanCloud 的应用配置。
    // 在 leancloud 应用 Keys 中
    let appid = ""
    let appkey = ""
    let url = ""
  4. 配置 Xcode 账号 添加 Signing 中找到 Team,添加自己的开发者账号。
  5. RUN 就 vans 了~

4 参考

5 许可

MIT License

swiftui-login-page-with-leancloud's People

Contributors

ailln avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

thk9

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.