iOS Swift class to create circular or rounded avatar images

Related tags

Image SwiftyAvatar
Overview

SwiftyAvatar

3.0 Apache CocoaPods Compatible

iOS Swift 3.0 UIimage class Create awesome circular avatar images!

enter image description here


IBInspectable attributes accessible from the identity inspector.

  • Roundness
  • Border width
  • Border color
  • Background color

You can see the changes directly on the storyboard!


Installation

Cocoapods:

  • pod 'SwiftyAvatar', '~> 1.1'

Manual:

  • drag 'n drop SwiftyAvatar.swift into your project.

How to use

Storyboard:

  • Select the image you want to use as avatar and change the class to SwiftyAvatar.

Code:

  • With default initializer
let avatar = SwiftyAvatar()
avatar.image = UIImage(named:"yourImage")
  • With your values
let avatar = SwiftyAvatar(size: 50, 
                          roundess: 2, 
                          borderWidth: 1, 
                          borderColor: .orange, 
                          background: .black)
                          
    avatar.image = UIImage(named: "yourImage")

Contact & Contribute

  • Feel free to contact me with ideas or suggestions at [email protected]
  • Fork the project and make your own changes
Comments
  • Use of undeclared type 'SwiftyAvatar' on @IBOutlet

    Use of undeclared type 'SwiftyAvatar' on @IBOutlet

    import SwiftyAvatar
    
    @IBOutlet var userimage: SwiftyAvatar!
    

    how can i outlet the image if the photo will be downloaded from Web services.

    Cheers

    Desmond

    opened by kohdesmond 6
  • Pods support / Example project

    Pods support / Example project

    Added Example project: https://github.com/dkalaitzidis/SwiftyAvatar/issues/1 Added Pods support: https://github.com/dkalaitzidis/SwiftyAvatar/issues/2

    Please change the SwiftyAvatar.podspec file accordingly to add your information.

    opened by RishabhTayal 3
  • LICENSE file is missing - i think this is good enough :)

    LICENSE file is missing - i think this is good enough :)

    Copyright (c) 2016-2017 SwiftyAvatar Software Foundation (https://github.com/dkalaitzidis/SwiftyAvatar)

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    opened by hakobyan1 1
  • Readme Organization

    Readme Organization

    Hey @dkalaitzidis, your library is really interesting.

    The only problem I found was the README.md, which lacks information. I created this iOS Open source Readme Template so you can take a look on how to better organize. If you want, I can help you to do it.

    What are your thoughts?

    opened by lfarah 1
  • Swift 3

    Swift 3

    This code should be merged to a new branch named swift-3. @dkalaitzidis Please create a new branch and I will create the PR again.

    This should not be merged in master as of now, since Xcode 8 is still in beta mode.

    opened by RishabhTayal 1
Releases(1.1.3)
Owner
Dimitrios Kalaitzidis
Dimitrios Kalaitzidis
Avatar provider for iOS tweak Contacy.

ContacyAvatarProvider Usage copy iphone_Contacy_avatar_provider.nic.tar to $THEOS/templates/ios/iphone/ $THEOS/bin/nic.pl and choose Contacy_avatar_pr

KpwnZ 6 Dec 16, 2022
Easy customizable avatar image asynchronously with progress bar animated

JDSwiftAvatarProgress ##Objective-C JDAvatarProgress is available in Objective-C also, JDAvatarProgress Usage To run the example project, clone the re

Jelly Development 86 May 16, 2022
Focus on avatar caching.

Navi Navi is designed for avatar caching, with style. The name of Navi from movie Avatar. Requirements Swift 3.1, iOS 8.0 Swift 2.3, use version 0.5.0

null 114 Jun 30, 2022
How to create a circular and rectangular ImageView with similar image?

chapter11CircularAndRectangularImage How to create a circular and rectangular ImageView with similar image? I add two imageView in Main.storyboard I a

ahmetbostanciklioglu 0 Jan 8, 2022
An extension to SnapshotTesting which allows you to create HEIC images

?? SnapshotTestingHEIC An extension to SnapshotTesting which allows you to create HEIC images. The benefit of using HEIC instead of PNG is that it can

Aleksei Kakoulin 5 Dec 4, 2022
IconsMaker - Create your app icon with SwiftUI and generate PNG images in all needed sizes

IconsMaker - Create your app icon with SwiftUI and generate PNG images in all needed sizes

Jonathan Gander 14 Oct 20, 2022
Swift image slideshow with circular scrolling, timer and full screen viewer

?? ImageSlideshow Customizable Swift image slideshow with circular scrolling, timer and full screen viewer ?? Example To run the example project, clon

Petr Zvoníček 1.7k Dec 21, 2022
A simple and flexible way to add source of overlapping circular pictures, currently supports horizontal overlapping or distant pictures with great layout flexibility.

THIS PROJECT IS NO LONGER MAINTAINED. STILL ONE ONLY BEST UI SOLUTION FOR UIKIT DEVELOPERS. SOON WILL COME UP WITH SWIFTUI STILL CONTRIBUTORS ARE WELC

Kiran Jasvanee 673 Dec 19, 2022
Agrume - 🍋 An iOS image viewer written in Swift with support for multiple images.

Agrume An iOS image viewer written in Swift with support for multiple images. Requirements Swift 5.0 iOS 9.0+ Xcode 10.2+ Installation Use Swift Packa

Jan Gorman 601 Dec 26, 2022
A lightweight generic cache for iOS written in Swift with extra love for images.

Haneke is a lightweight generic cache for iOS and tvOS written in Swift 4. It's designed to be super-simple to use. Here's how you would initalize a J

Haneke 5.2k Dec 11, 2022
Nilay Dagdemir 0 Jan 23, 2022
APNGKit is a high performance framework for loading and displaying APNG images in iOS and macOS.

APNGKit is a high performance framework for loading and displaying APNG images in iOS and macOS. It's built on top of a modified version of libpng wit

Wei Wang 2.1k Dec 30, 2022
📱iOS app to extract full-resolution video frames as images.

Frame Grabber is a focused, easy-to-use iOS app to extract full-resolution video frames as images. Perfect to capture and share your favorite video mo

Arthur Hammer 319 Jan 7, 2023
Jogendra 113 Nov 28, 2022
iOS library for quickly displaying images while scrolling

Fast Image Cache is an efficient, persistent, and—above all—fast way to store and retrieve images in your iOS application. Part of any good iOS applic

Path Mobile Inc Pte. Ltd. 8.2k Jan 9, 2023
iOS SDK to share JPEG images with an expiration date

Ebblink iOS SDK A library to integrate Ebblink private image sharing capabilities into your iOS app. Table of Contents Getting Started Requirements Se

null 4 Apr 6, 2018
iOS Framework that makes it easy to preview images on any UIImageView.

AZImagePreview iOS Framework that makes it easy to preview images on any UIImageView. Screenshots Installation: Cocoa Pods: pod 'AZImagePreview' Swift

Antonio Zaitoun 25 Dec 11, 2022
FlaneurImagePicker is an iOS image picker that allows users to pick images from different sources (ex: user's library, user's camera, Instagram...). It's highly customizable.

FlaneurImagePicker is a highly customizable iOS image picker that allows users to pick images from different sources (ex: device's library, device's c

FlaneurApp 17 Feb 2, 2020
Kingfisher is a powerful, pure-Swift library for downloading and caching images from the web

Kingfisher is a powerful, pure-Swift library for downloading and caching images from the web. It provides you a chance to use a pure-Swift way to work

Wei Wang 20.9k Dec 30, 2022