Skip to content

Commit

Permalink
New version 4.0 to surpport Swift 4 and 5
Browse files Browse the repository at this point in the history
  • Loading branch information
cl7 authored and cl7 committed Oct 14, 2019
1 parent 70393a1 commit fa8d0d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .swift-version

This file was deleted.

8 changes: 4 additions & 4 deletions CLTypingLabel.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "CLTypingLabel"
s.version = "0.3.0"
s.version = "0.4.0"
s.summary = "UILabel with character by character typing animation in swift iOS/OSX"

# This description is used to generate tags and improve search results.
Expand All @@ -19,15 +19,15 @@ Pod::Spec.new do |s|
s.description = "iOS/OSX UILabel with character by character typewriter like animation"

s.homepage = "https://github.com/cl7/CLTypingLabel"
# s.screenshots = "https://raw.githubusercontent.com/l800891/CLTypingLabel/master/Files/demogiff.gif"
# s.screenshots = "https://raw.githubusercontent.com/cl7/CLTypingLabel/master/Files/demogiff.gif"
s.license = 'MIT'
s.author = { "Chenglin" => "[email protected]" }
s.source = { :git => "https://github.com/cl7/CLTypingLabel.git", :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

s.platform = :ios, '9.0'
s.platform = :ios, '10.0'
s.requires_arc = true

s.swift_versions = ['4.0', '5.0']
s.source_files = 'Pod/Classes/*'


Expand Down
4 changes: 2 additions & 2 deletions Pod/Classes/CLTypingLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import UIKit
private var typingStopped: Bool = false
private var typingOver: Bool = true
private var stoppedSubstring: String?
private var attributes: [NSAttributedStringKey: Any]?
private var attributes: [NSAttributedString.Key: Any]?
private var currentDispatchID: Int = 320
private let dispatchSerialQ = DispatchQueue(label: "CLTypingLableQueue")
/*
Expand Down Expand Up @@ -139,7 +139,7 @@ import UIKit
// MARK: -
// MARK: Set Text Typing Recursive Loop

private func setTextWithTypingAnimation(_ typedText: String, _ attributes: Dictionary<NSAttributedStringKey, Any>?, _ charInterval: TimeInterval, _ initial: Bool, _ dispatchID: Int) {
private func setTextWithTypingAnimation(_ typedText: String, _ attributes: Dictionary<NSAttributedString.Key, Any>?, _ charInterval: TimeInterval, _ initial: Bool, _ dispatchID: Int) {

guard !typedText.isEmpty && currentDispatchID == dispatchID else {
typingOver = true
Expand Down

0 comments on commit fa8d0d0

Please sign in to comment.