This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CarouselCell.swift | |
// CardCarousel2 | |
// | |
// Created by Reona Kubo on 2018/06/11. | |
// Copyright © 2018年 Reona Kubo. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CarouselCell.swift | |
// CardCarousel2 | |
// | |
// Created by Reona Kubo on 2018/06/11. | |
// Copyright © 2018年 Reona Kubo. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CarouselCell.swift | |
// CardCarousel2 | |
// | |
// Created by Reona Kubo on 2018/06/11. | |
// Copyright © 2018年 Reona Kubo. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CarouselCell.swift | |
// CardCarousel2 | |
// | |
// Created by Reona Kubo on 2018/06/11. | |
// Copyright © 2018年 Reona Kubo. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CarouselCell.swift | |
// CardCarousel2 | |
// | |
// Created by Reona Kubo on 2018/06/11. | |
// Copyright © 2018年 Reona Kubo. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class PickerTableViewCell: UITableViewCell { | |
public var rightLabel:UILabel! | |
override func awakeFromNib() { | |
super.awakeFromNib() | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//渡したい画像 | |
class ImageActivityItem:NSObject,UIActivityItemSource{ | |
var image:UIImage? | |
override init(){ | |
super.init() | |
} | |
convenience init(_ image:UIImage?){ | |
self.init() | |
self.image = image | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class TransmissionView: UIView { | |
//自分自身はサワレナイ | |
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? { | |
let view = super.hitTest(point, with: event) | |
if view == self { | |
return nil | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class SwipeAnimationCollectionView: UICollectionView { | |
var reloadCount:Int = 0 | |
required init?(coder aDecoder: NSCoder) { | |
super.init(coder: aDecoder) | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import AVFoundation | |
import UIKit | |
class MovieCreator: NSObject { | |
func create(images:[UIImage],size:CGSize,time:Int,completion:(URL)->()){ | |
//保存先のURL | |
guard let url = NSURL(fileURLWithPath:NSTemporaryDirectory()).appendingPathComponent("\(NSUUID().uuidString).mp4") else { |