GithubHelp home page GithubHelp logo

weiran / multiimagerow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from machipla/multiimagerow

0.0 1.0 1.0 7.26 MB

A multi-image picker row for Eureka in a single UITableViewCell!

License: MIT License

Swift 95.79% Ruby 4.21%

multiimagerow's Introduction

MultiImageRow

License Version

A multi-image picker row for Eureka in a single UITableViewCell!

Multi image row

Multi image row is a row that displays multiple images at once, it is simple as this:

let imagesRow = MultiImageRow(initializer: { row in
    row.descriptionTitle = "My images"
    row.value = [.image(UIImage(named: "my_image")!)] // Here goes the slots for the row 
}).onImageSelected { row, image, index in
    // Do something with the selection
}

It can load multiple images in a collection view at one, loading them from URL or UIImage or leaving them empty. There's a default slot cell made for you, but if you want you can customize it to show your own slot cell like this:

row.cellType = .customNib(UINib(nibName: "MyAwesomeCell", bundle: nil))

You can user new cells via Nib or Class, just like if you were loading a UICollectionViewCell!

Multi image picker row

Multi image picker row is similar to the previous row and has almost all his functionality, but it also lets the user take a picture from the album or camera using ImagePickerCoordinator You can also set a placeholderImage for the row in order to show a placeholder for every slot in the row.

let pickerRow = MultiImagePickerRow(fromController: .specific(myController)) { row in
    row.placeholderImage = UIImage(named: "my_placeholder")
    row.descriptionTitle = "My editable images"
    row.value = [.url(URL(string: "https://i.imgflip.com/1cl03l.jpg?a427056")!),.empty,.empty]
}

More

Suggestions? Features? Threats? Let me know!

multiimagerow's People

Contributors

machipla avatar weiran avatar

Watchers

 avatar

Forkers

aluco100

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.