Skip to content

ACImage, Image loading and managing view as per downloading state.

License

Notifications You must be signed in to change notification settings

pinalaecor/ACImage

 
 

Repository files navigation

ACImage

Maintenance License Platform SwiftPM compatible GitHub contributors GitHub pull-requests

What's for

A feature packed image view which allows you to focus on important tasks in your work and leave all image management to ACImage.

Features

  • Name Initials
  • Animated Image
  • Local Image
  • URL Image
  • Place holder Image
  • Failure Image
  • Youtube Thumbnail from URL

Version

This framework follows Semantic Versioning. Each source-break API changes will bump to a major version.

Contribution

All issue reports, feature requests, contributions, and GitHub stars are welcomed. Hope for active feedback and promotion if you find this framework useful.

Requirements

  • Xcode 14.2+
  • iOS 14+

Installation

Swift Package Manager

ACImage is available only through Swift Package Manager.

For package integration, you should be using Xcode 14.2 or higher, to add this package to your App target. To do this, check Adding Package Dependencies to Your App about the step by step tutorial using Xcode.

let package = Package(
    dependencies: [
        .package(url: "https://github.com/pinalaecor/ACImage.git", from: "1.0.9")
    ],
)

Usage

Using ACImage to show image

var body: some View {
    ACImage(imageURL, contentMode: .fill, nameInitials: nil, placeHolderImage: Constant.contentPlaceHolderImage, failureImage: Constant.imageDownloadfailure, size: imageSize)
        .clipShape(Circle())
        .background(
            Circle()
                .stroke(strokeColor, lineWidth: strokeWidth)
        )
        .foregroundColor(textColor)
        .font(.custom(fontName, size: fontSize, relativeTo: relativeTo))
}
  • PlaceHolder UI

PlaceHolder View

  • Image view UI

Downloaded Image View

  • Initials UI

Initials View

  • Failure UI

Failure Image.png View

Author

Thanks

Contributing

If you have suggestions for how this framework could be improved, or want to report a bug, open an issue! We'd love all and any contributions.

For more, check out the Contributing Guide.

License

ACImage is available under the MIT license.

About

ACImage, Image loading and managing view as per downloading state.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages

  • Swift 100.0%