Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fully automatic managed circular image array above UIKit.

License

NotificationsYou must be signed in to change notification settings

chanonly123/ProfileClusterView

Repository files navigation

Fully automatic managed circular image array.

alt tag

Usage

From Interface Builder

• DragProfileClusterView.swift file into your project
• Add aUIView into interface builder
• Set it's class toProfileClusterView

From code

let profileCluster = ProfileCluster()

  

Options

spacing - spacing between profile views.

alignment - profile views alignment. (left/right/center/justify)

startFrom - starting position profile views. (left/right)

maxVisible - Maximum visible items. (0 means no limit)

  

Closures

configureCount - (required) return number of profile views

viewProfiles.configureCount = {    return 10}

configureImageView orconfigureImageViewCustom - to configure image views

viewProfiles.configureImageView = { cluster in    cluster.imageView.image = something}// orviewProfiles.configureImageViewCustom = { cluster in    let view = UIView() // create your view    cluster.view.addSubview(view)}

configureMoreView orconfigureMoreViewCustom - to configure more label

viewProfiles.configureMoreView = { cluster in    cluster.label.backgroundColor = .blue}// orviewProfiles.configureImageViewCustom = { cluster in    let lbl = UILabel()    lbl.text = "+\(cluster.more)"    cluster.view.addSubview(lbl)}

Contributing

Contributions are always welcome!

License

This project is licensed under the MIT License - see theLICENSE.md file for details

About

Fully automatic managed circular image array above UIKit.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp