This is a unit test and example project for TouchVG, which is a lightweight 2D vector drawing framework for iOS.
This is an open source LGPL 2.1 licensed project. It uses the following open source projects:
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.
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
).
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 ).
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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。