RARFSlider 0.7.15

RARFSlider 0.7.15

Maintained by daisukenagata.



RARFSlider 0.7.15

RARFSlider

Version License Platform

operation

It is a function to edit Video.

  • picButton opens a video album.

  • Button saves the edited video.

  • Merge combines the first and second edit videos.

  • Inside Trim is trims the selected inside.

  • Show or hide the UI by tapping the preview screen

version 0.4.5

You can set it to your favorite design.

    @IBOutlet public weak var rARFSlider: UISlider?

    @IBOutlet public weak var rARFTimeLabel: UILabel?
    @IBOutlet public weak var rARFDurationLabel: UILabel?

    @IBOutlet public weak var rARFPicBt: UIButton?
    @IBOutlet public weak var rARFTrimButton: UIButton?
    @IBOutlet public weak var rARFMergeButton: UIButton?
    @IBOutlet public weak var rARFInsideTrimButton: UIButton?

    @IBOutlet public weak var rARFPreView: RARFPreView?
    @IBOutlet public weak var rARFLargePreView: UIImageView?
    @IBOutlet public weak var rARFThumnaiIImageView: UIImageView?

Example

Requirements

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

RARFSlider is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'RARFSlider'

Code

import UIKit
import RARFSlider

class ViewController: RARFPickerViewController {

    @IBOutlet private var sliderView: RARFSliderView!


    override func viewDidLoad() {
        super.viewDidLoad()

        sliderView.imagePick(vc: self, callBack: callBack)
    }

    func callBack() {
        guard let url = url else  { return }

        sliderView.removeFromSuperview()
        sliderView = RARFSliderView(frame: CGRect(x: 0, y: 0, width: view.frame.width, height: view.frame.height))
        view.addSubview(sliderView)

        sliderView.rARFVc = self
        //DESIGNSET
        sliderView.rARFOpacity = 0.7
        sliderView.rARFSideWhide = 1
        sliderView.rARFBorderWidth = 1
        sliderView.rARFTopDownWhide = 1
        sliderView.rARFBorderColor = .white
        sliderView.rARFSetVideoModel.setURL(url: url, sliderView: sliderView, height: 100, heightY: 100)
    }
}

Author

daisukenagata, [email protected]

License

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