Skip to content

Commit 2f1d96a

Browse files
committed
make Icon Public
1 parent c6ec3ca commit 2f1d96a

5 files changed

Lines changed: 34 additions & 13 deletions

File tree

.swift-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.1

JDAVKit/JDVideoKit/JDProcessingViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import AVFoundation
1010
import UIKit
1111
import MobileCoreServices
1212

13+
1314
protocol JDProcessingViewControllerDlegate
1415
{
1516
func VideoHasBeenSelect(video:VideoOrigin,processingVC:UIViewController)->JDPresentingViewController?

JDAVKit/JDVideoKit/Xib/IconDrawer.swift

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@
88

99
import UIKit
1010

11-
class IconDraw: UIView {
11+
public class IconDraw: UIView {
1212
override init(frame: CGRect)
1313
{
1414
super.init(frame: frame)
1515
self.backgroundColor = UIColor.clear
1616
}
1717

18-
required init?(coder aDecoder: NSCoder) {
18+
required public init?(coder aDecoder: NSCoder) {
1919
super.init(coder: aDecoder)
2020
self.backgroundColor = UIColor.clear
2121
}
2222

23-
override func prepareForInterfaceBuilder() {
23+
override public func prepareForInterfaceBuilder() {
2424
self.backgroundColor = UIColor.clear
2525
}
2626

2727
}
2828

29-
@IBDesignable class FlashIconDraw:IconDraw
29+
@IBDesignable public class FlashIconDraw:IconDraw
3030
{
3131
var iconcolor:CGColor!
3232
func CGPointMake(_ x:CGFloat,_ y:CGFloat)->CGPoint
@@ -43,7 +43,7 @@ class IconDraw: UIView {
4343
return CGPoint(x: sx, y: sy)
4444
}
4545

46-
override func draw(_ rect: CGRect) {
46+
override public func draw(_ rect: CGRect) {
4747
let iconlayers = CAShapeLayer()
4848
iconlayers.fillColor = iconcolor
4949
iconlayers.path = drawCanvas1()
@@ -84,7 +84,7 @@ class IconDraw: UIView {
8484
}
8585

8686

87-
@IBDesignable class SwitchIconDraw:IconDraw
87+
@IBDesignable public class SwitchIconDraw:IconDraw
8888
{
8989
var iconcolor:CGColor!
9090
func CGPointMake(_ x:CGFloat,_ y:CGFloat)->CGPoint
@@ -101,7 +101,7 @@ class IconDraw: UIView {
101101
return CGPoint(x: sx, y: sy)
102102
}
103103

104-
override func draw(_ rect: CGRect) {
104+
override public func draw(_ rect: CGRect) {
105105
let layers = CAShapeLayer()
106106
layers.fillColor = iconcolor
107107
layers.path = drawCanvas1()
@@ -171,7 +171,7 @@ class IconDraw: UIView {
171171
}
172172
}
173173

174-
@IBDesignable class BackIconDraw:IconDraw
174+
@IBDesignable public class BackIconDraw:IconDraw
175175
{
176176
var iconcolor:CGColor!
177177
func CGPointMake(_ x:CGFloat,_ y:CGFloat)->CGPoint
@@ -190,7 +190,7 @@ class IconDraw: UIView {
190190

191191

192192

193-
override func draw(_ rect: CGRect) {
193+
override public func draw(_ rect: CGRect) {
194194
let layers = CAShapeLayer()
195195
layers.fillColor = UIColor.white.cgColor
196196
layers.path = drawCanvas1()
@@ -240,7 +240,7 @@ class IconDraw: UIView {
240240
}
241241
}
242242

243-
@IBDesignable class InfinityIconDraw:IconDraw
243+
@IBDesignable public class InfinityIconDraw:IconDraw
244244
{
245245
@IBInspectable var testcolor:UIColor = UIColor.black
246246

@@ -258,7 +258,7 @@ class IconDraw: UIView {
258258
return CGPoint(x: sx, y: sy)
259259
}
260260

261-
override func draw(_ rect: CGRect) {
261+
override public func draw(_ rect: CGRect) {
262262
let layers = CAShapeLayer()
263263
layers.fillColor = UIColor.white.cgColor
264264
layers.path = drawCanvas1()
@@ -299,7 +299,7 @@ class IconDraw: UIView {
299299
}
300300
}
301301

302-
@IBDesignable class RecordIconDraw:IconDraw
302+
@IBDesignable public class RecordIconDraw:IconDraw
303303
{
304304
var iconcolor:CGColor!
305305
func CGPointMake(_ x:CGFloat,_ y:CGFloat)->CGPoint
@@ -316,7 +316,7 @@ class IconDraw: UIView {
316316
return CGPoint(x: sx, y: sy)
317317
}
318318

319-
override func draw(_ rect: CGRect) {
319+
override public func draw(_ rect: CGRect) {
320320
let layers = CAShapeLayer()
321321
layers.fillColor = iconcolor
322322
layers.path = drawCanvas1()

JDVideoKit.podspec

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Pod::Spec.new do |s|
2+
s.name = 'JDVideoKit'
3+
s.version = '1.0.0'
4+
s.summary = 'You can easily transfer your video into Three common video type.'
5+
6+
s.description = <<-DESC
7+
You can easily transfer your video into Three common video type.
8+
You can use set up camera easily.
9+
DESC
10+
11+
s.homepage = 'https://github.com/jamesdouble/JDVideoKit'
12+
s.license = { :type => 'MIT', :file => 'LICENSE' }
13+
s.author = { 'JamesDouble' => 'jameskuo12345@gmail.com' }
14+
s.source = { :git => 'https://github.com/jamesdouble/JDVideoKit.git', :tag => s.version.to_s }
15+
16+
s.ios.deployment_target = '8.0'
17+
s.source_files = 'JDAVKit/JDVideoKit/*'
18+
19+
end

0 commit comments

Comments
 (0)