A feature packed image view which allows you to focus on important tasks in your work and leave all image management to ACImage.
- Name Initials
- Animated Image
- Local Image
- URL Image
- Place holder Image
- Failure Image
- Youtube Thumbnail from URL
This framework follows Semantic Versioning. Each source-break API changes will bump to a major version.
All issue reports, feature requests, contributions, and GitHub stars are welcomed. Hope for active feedback and promotion if you find this framework useful.
- Xcode 14.2+
- iOS 14+
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")
],
)
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
- Image view UI
- Initials UI
- Failure UI
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.
ACImage is available under the MIT license.