1 Star 0 Fork 0

TouchVG / vgios-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

TouchVG Demo for iOS

This is a unit test and example project for TouchVG, which is a lightweight 2D vector drawing framework for iOS.

arch

License

This is an open source LGPL 2.1 licensed project. It uses the following open source projects:

  • TouchVG (LGPL): Vector drawing framework for iOS.
  • TouchVGCore (LGPL): Cross-platform vector drawing libraries using C++.
  • SVGKit (MIT): Display and interact with SVG Images with CoreAnimation on iOS.
  • DemoCmds: A template and example project containing customized shape and command classes.

How to Compile

Compile with CocoaPods

Type pod install or pod update --no-repo-update, then open TestView.xcworkspace in Xcode and run the TestView demo app.

The TestView demo app has two targets:

  • TestView target using libTouchVG.a does not support SVG display.

  • TestView-SVG target using libTouchVG-SVG.a and SVGKit can display SVG shapes.

  • To run on device, you may need to change the Bundle Identifier of the demo application, such as "com.yourcompany.TestView", and choose your own development certificate (Code Signing).

To use SVGKit, uncomment 4 lines about 'TestView-SVG' target in the Podfile.

Compile without CocoaPods

Alternatively, you can build as one of the following methods:

  • Cd the folder of this project and type ./build.sh or ./build.sh -arch arm64 to checkout and build libraries needed.

  • Open TestView.xcworkspace in Xcode, then run the TestView demo app (Need to build each library while not type ./build.sh).

Add more shapes and commands

  • Do not want to write C++ code? Please reference to test/src/vgtest/testview/shape package to write your own shape and command classes.

  • You can create library project containing your own shapes and commands. So the TouchVG and TouchVGCore libraries does not require changes.

    • Checkout and enter DemoCmds directory, then type python newproj.py YourCmds:

      git clone http://git.oschina.net/vg/DemoCmds.git
      cd DemoCmds
      python newproj.py MyCmds
  • You can customize the drawing behavior via implement your CmdObserver class (see the example in DemoCmds ).

How to Contribute

Contributors and sponsors are welcome. You may translate, commit issues or pull requests on this Github site. To contribute, please follow the branching model outlined here: A successful Git branching model.

Welcome to the Chinese QQ group 192093613 to discuss and share.

空文件

简介

Unit test and example project with TouchVG for iOS. 展开 收起
Objective-C
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Objective-C
1
https://gitee.com/vg/vgios-demo.git
git@gitee.com:vg/vgios-demo.git
vg
vgios-demo
vgios-demo
master

搜索帮助