AmytisView

public class AmytisView : NSObject, AmytisViewJSExport

Undocumented

  • Undocumented

    Declaration

    Swift

    public var view: UIView!
  • Undocumented

    Declaration

    Swift

    public var controller: AmytisController { get }
  • Undocumented

    Declaration

    Swift

    public var parent: AmytisView { get }
  • Undocumented

    Declaration

    Swift

    public var gestureRecognizers: [UISwipeGestureRecognizer]
  • Undocumented

    Declaration

    Swift

    public var swipe: Swipe
  • pan

    Undocumented

    Declaration

    Swift

    public var pan: Pan
  • Undocumented

    Declaration

    Swift

    public func open(_ name: String, _ params: [String : Any]?)
  • This function would get a json ‘String’ or ‘Data’ and would populate the origin view with the given json Warning: This function would clear the origin view from any subviews

    Usage: let AmytisView = view.createAmytisView() AmytisView.populateWith(string: {views: [{type:image,id:top-right-image,pos:TR,size:150x150,source:https://i.ytimg.com/vi/m5d1FlSeF-M/maxresdefault.jpg"}]}“)

    :param: data to capture Json from Data :param: string to capture Json from String

    Declaration

    Swift

    public func populateWith(name: String? = nil, paramsS: String? = nil, paramsX: XML? = nil, paramsX2: XML? = nil, paramsJ: [String : Any]? = nil, data: Data? = nil, string: String? = nil, file: String? = nil, xmlD: XML? = nil, xmlArr: [XML]? = nil, animated: Bool = false, execCode: Bool = false, parent: AmytisView? = nil, logs shouldLog: Bool = false)
  • Undocumented

    Declaration

    Swift

    public func populatewt(name: String? = nil, paramsS: String? = nil, paramsX: XML? = nil, paramsX2: XML? = nil, paramsJ: [String : Any]? = nil, data: Data? = nil, string: String? = nil, file: String? = nil, xmlD: XML? = nil, xmlArr: [XML]? = nil, animated: Bool = false, execCode: Bool = false, parent: AmytisView? = nil, logs shouldLog: Bool = false)
  • Undocumented

    Declaration

    Swift

    public func reCalculateSizes(_ animated: Bool = false)
  • Undocumented

    Declaration

    Swift

    public func switchViews(_ toShow: String, _ toHide: String)
  • Undocumented

    Declaration

    Swift

    public func animateViews(_ toShow: String, _ toHide: [String], right: Bool = true, speed: Int = 10, completion: (() -> Void)? = nil)
  • Undocumented

    Declaration

    Swift

    public func startLoading()
  • Undocumented

    Declaration

    Swift

    public func stopLoading()
  • Undocumented

    Declaration

    Swift

    public func view(_ id: String) -> View?
  • Undocumented

    Declaration

    Swift

    public func label(_ id: String) -> Label?
  • Undocumented

    Declaration

    Swift

    public func image(_ id: String) -> ImageView?
  • Undocumented

    Declaration

    Swift

    public func button(_ id: String) -> Button?
  • Undocumented

    Declaration

    Swift

    public func textfield(_ id: String) -> TextField?
  • Undocumented

    Declaration

    Swift

    public func tableview(_ id: String) -> TableView?
  • Undocumented

    Declaration

    Swift

    public func collectionview(_ id: String) -> CollectionView?
  • Undocumented

    Declaration

    Swift

    public func map(_ id: String) -> Map?
  • Undocumented

    Declaration

    Swift

    public func picker(_ id: String) -> Picker?
  • Undocumented

    Declaration

    Swift

    public func selection(_ id: String) -> Segment?
  • Undocumented

    Declaration

    Swift

    public func slider(_ id: String) -> Slider?
  • Undocumented

    Declaration

    Swift

    public func slideshow(_ id: String) -> SlideShow?
  • Undocumented

    Declaration

    Swift

    public func getSwitch(_ id: String) -> Switch?
  • Undocumented

    Declaration

    Swift

    public func datepicker(_ id: String) -> DatePicker?
  • ////// using views by closure

    Declaration

    Swift

    public func view(_ id: String, _ closure: @escaping (View) -> Void)
  • Undocumented

    Declaration

    Swift

    public func label(_ id: String, _ closure: @escaping (Label) -> Void)
  • Undocumented

    Declaration

    Swift

    public func image(_ id: String, _ closure: @escaping (ImageView) -> Void)
  • Undocumented

    Declaration

    Swift

    public func button(_ id: String, _ closure: @escaping (Button) -> Void)
  • Undocumented

    Declaration

    Swift

    public func textfield(_ id: String, _ closure: @escaping (TextField) -> Void)
  • Undocumented

    Declaration

    Swift

    public func tableview(_ id: String, _ closure: @escaping (TableView) -> Void)
  • Undocumented

    Declaration

    Swift

    public func collectionview(_ id: String, _ closure: @escaping (CollectionView) -> Void)
  • Undocumented

    Declaration

    Swift

    public func map(_ id: String, _ closure: @escaping (Map) -> Void)
  • Undocumented

    Declaration

    Swift

    public func picker(_ id: String, _ closure: @escaping (Picker) -> Void)
  • Undocumented

    Declaration

    Swift

    public func selection(_ id: String, _ closure: @escaping (Segment) -> Void)
  • Undocumented

    Declaration

    Swift

    public func slider(_ id: String, _ closure: @escaping (Slider) -> Void)
  • Undocumented

    Declaration

    Swift

    public func slideshow(_ id: String, _ closure: @escaping (SlideShow) -> Void)
  • Undocumented

    Declaration

    Swift

    public func getSwitch(_ id: String, _ closure: @escaping (Switch) -> Void)
  • Undocumented

    Declaration

    Swift

    public func datepicker(_ id: String, _ closure: @escaping (DatePicker) -> Void)
  • Undocumented

    Declaration

    Swift

    public func bindToPan(view: UIView, end: CGPoint = CGPoint.zero, direction: BindPanDirection = .x, incremental: Bool = false, ended: (() -> Void)? = nil)