Coder Social home page Coder Social logo

hsongslidetabview's Introduction

HSongSlideTabView

Platforms License: MIT

让TabView变的更酷!

未来会拓展它的自由度,添加更多可调整的属性
喜欢的给一颗⭐️吧

1.展示效果


2.使用

①首先引入HSongSlideTabView

  import HSongSlideTabView

②定义TabView样式,并使用,非常简便

无图标(如1中左图)
  struct ContentView: View {
      let manager: Manager = Manager(leftTitle: "你好", rightTitle: "欢迎")
      var body: some View {
          HSongSlideTabView(manager: manager) {
              AView()
              BView()
          }
      }
  }
有图标(如1中右图)
  struct ContentView: View {
      let manager: Manager = Manager(leftImg: "dianpu", leftSelectedImg: "dianpu-sed",leftTitle: "你好", rightImg: "yinliao", rightSelectedImg: "yinliao-sed",rightTitle: "欢迎")
      var body: some View {
          HSongSlideTabView(manager: manager) {
              AView()
              BView()
          }
      }
  }

3.安装

支持通过cocoapods安装

在你的项目中的Podfile添加pod HSongSlideTabView即可

直接下载示例

将示例中的HSongSlideTabView文件夹导入到自己的项目即可

4.Author

Thered-key

5.License

HSongSlideTabView is available under the MIT license. See the LICENSE file for more info.


hsongslidetabview's People

Contributors

hisongmo avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  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.