ama

AmazingPuzzle

智能拼图, 多种风格, 将多张图片以各种形式拼接成单张图片

Showing:

Popularity

Downloads/wk

0

GitHub Stars

50

Maintenance

Last Commit

10mos ago

Contributors

0

Package

Dependencies

0

License

MIT

Categories

Readme

License Platform Language

AmazingPuzzle 主要用于将多张图片以各种形式拼接成单张图片

  • 支持1~5张图片
  • 每张单独的照片支持移动缩放
  • 每组图片有6中风格类型
  • 纯Swift 语言开发, 简单集成使用

Demo Effect

image

CocoaPods

  pod 'AmazingPuzzle'

Requirements

  • iOS 9.0+
  • Swift 5.x
  • Xcode 12.x

Usage

/// 初始化
let puzzleAndStyleView = PTPuzzleAndStyleView()
    
// 设置位置和大小
puzzleAndStyleView.frame = CGRect(x: 0, y: 0, width: 500, height: 300)
    
// 添加到父视图
view.addSubview(puzzleAndStyleView)
     
// 设置图片数据源
puzzleAndStyleView.imageSource = [UIImage(named: "ImageName1"), UIImage(named: "ImageName2"), UIImage(named: "ImageName3")]
     
// 获取拼图后的 UIImage
let cropImage = puzzleAndStyleView.captureImage 

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100