Latest 0.1.0
Homepage https://github.com/isaced/ISHappyPuzzle
License MIT
Platforms ios 8.0
Authors

just want to hapyy puzzle!

  • Swift3
  • Xcode8

screenshot

Layout

很方便的使用 JSON 文件来组织布局模型数据,格式如下:

[        
    {
        "x": 0.587,
        "y": 0.490,
        "width": 0.384,
        "height": 0.215
    },
    ...
]

这是每一块的表示,多个块包在一个数组里即可。

Go

使用非常简单,可以从文件或者网络中读取布局模型数据,然后通过 ISHappyPuzzleView 装载:

// 初始化
let puzzleView = ISHappyPuzzleView()

// 加载布局
puzzleView.loadLayout(layoutInfo)

// 截图
let screenshot = puzzleView.screenShot()

Cocoapods

pod 'ISHappyPuzzle'

Latest podspec

{
    "name": "ISHappyPuzzle",
    "version": "0.1.0",
    "summary": "just want to hapyy puzzle!",
    "description": "just want to hapyy puzzle!!!",
    "homepage": "https://github.com/isaced/ISHappyPuzzle",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "isaced": "[email protected]"
    },
    "source": {
        "git": "https://github.com/isaced/ISHappyPuzzle.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This