Skip to content

Retro-Cartoons/Tom

Repository files navigation

Tom

CI Status Version SPM License Platform

Demo

GIF

Requirements

  • iOS 13.0+
  • Xcode 11+
  • Swift 5.1+

Installation

Cocoapods

pod 'Tom'

Swift Package Manager

  1. File > Swift Packages > Add Package Dependency
  2. Add https://github.com/Retro-Cartoons/Tom.git

OR

Update dependencies in Package.swift

dependencies: [
    .package(url: "https://github.com/Retro-Cartoons/Tom.git", .upToNextMajor(from: "1.0.0"))
]

Usage

Properties

lineCount: Int = 8
lineColor: UIColor = .black
lineSpacing: CGFloat = 8
minLineThickness: CGFloat = 8
animationSpeed: Double = 0.25
Vertical: Bool = false

XIB

StoryboardImplementation

Programmatically

TomView(configuration: .init(lineCount: 20, lineColor: .black))

License

Tom is available under the MIT license. See the LICENSE file for more info.