Skip to content

Instantly share code, notes, and snippets.

View uruly's full-sized avatar
☂️

Reo uruly

☂️
View GitHub Profile
@uruly
uruly / CarouselCell.swift
Created June 13, 2018 21:39
CarouselView - Complete
//
// CarouselCell.swift
// CardCarousel2
//
// Created by Reona Kubo on 2018/06/11.
// Copyright © 2018年 Reona Kubo. All rights reserved.
//
import UIKit
@uruly
uruly / CarouselCell.swift
Created June 11, 2018 17:38
CarouselView - Paging
//
// CarouselCell.swift
// CardCarousel2
//
// Created by Reona Kubo on 2018/06/11.
// Copyright © 2018年 Reona Kubo. All rights reserved.
//
import UIKit
@uruly
uruly / CarouselCell.swift
Created June 11, 2018 11:01
CarouselView - Transform Scale
//
// CarouselCell.swift
// CardCarousel2
//
// Created by Reona Kubo on 2018/06/11.
// Copyright © 2018年 Reona Kubo. All rights reserved.
//
import UIKit
@uruly
uruly / CarouselCell.swift
Created June 10, 2018 17:35
CarouselView - Infinity CollectionView
//
// CarouselCell.swift
// CardCarousel2
//
// Created by Reona Kubo on 2018/06/11.
// Copyright © 2018年 Reona Kubo. All rights reserved.
//
import UIKit
@uruly
uruly / CarouselCell.swift
Created June 10, 2018 16:43
CarouselView - Horizontal CollectionView
//
// CarouselCell.swift
// CardCarousel2
//
// Created by Reona Kubo on 2018/06/11.
// Copyright © 2018年 Reona Kubo. All rights reserved.
//
import UIKit
import UIKit
class PickerTableViewCell: UITableViewCell {
public var rightLabel:UILabel!
override func awakeFromNib() {
super.awakeFromNib()
}
//渡したい画像
class ImageActivityItem:NSObject,UIActivityItemSource{
var image:UIImage?
override init(){
super.init()
}
convenience init(_ image:UIImage?){
self.init()
self.image = image
}
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
}
import UIKit
class SwipeAnimationCollectionView: UICollectionView {
var reloadCount:Int = 0
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}
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 {