Really, really simple round ImageView in Swift, with Interface Builder support. Version 1.3 migrated to Swift 4.2
To run the example project, clone the repo, and run pod install
from the Example directory first.
FreakingSimpleRoundImageView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'FreakingSimpleRoundImageView'
- Open your storyboard, put an ImageView on your scene.
- Open Identity tab (cmd+alt+3). Set a RoundImageView class for it.
- Wait a second or two for "Designables: Up to date" line.
- Go on Attributes tab (cmd+alt+4), set a border width and border color
- On Attributes tab, set 'Clip to bounds' flag.
- Be happy.
realbonus, p.anokhov@gmail.com
FreakingSimpleRoundImageView is available under the MIT license. See the LICENSE file for more info.
Image credits: Starwars.com