Skip to content

Navigation Menu

Sign in
Sign up

Repository files navigation

SplitRow

A row for Eureka to put two rows side by side into the same UITableViewCell.

Platform iOS Swift 5 compatible Carthage compatible CocoaPods compatible License: MIT

Contents

Introduction

SplitRow is a custom row for Eureka designed to put two rows side by side into the same UITableViewCell.

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects.

Specify Eureka into your project's Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.3'
use_frameworks!
pod 'SplitRow'

Then run the following command:

$ pod install

Carthage

Carthage is a simple, decentralized dependency manager for Cocoa.

Specify SplitRow into your project's Cartfile:

github "EurekaCommunity/SplitRow" ~> 2.1.1

Then run the following command:

$ carthage bootstrap --platform iOS

Usage

import Eureka
import SplitRow
class ViewController: FormViewController {
 override func viewDidLoad() {
 super.viewDidLoad()
 form +++ Section()
 <<< SplitRow<PushRow<String>,TextRow>(){
 0ドル.rowLeft = PushRow<String>(){
 0ドル.selectorTitle = "E-Mail"
 0ドル.options = ["Private","Work","Others"]
 }
 0ドル.rowRight = TextRow(){
 0ドル.placeholder = "E-Mail"
 }
 }.onChange{
 print("SplitRow.onChange:","left:",0ドル.value?.left,"right:",0ドル.value?.right)
 }
 }
}

Example by changing the percentage of the row on the right

import Eureka
import SplitRow
class ViewController: FormViewController {
 override func viewDidLoad() {
 super.viewDidLoad()
 form +++ Section()
 <<< SplitRow<PushRow<String>,TextRow>(){
 0ドル.rowLeftPercentage = 0.5
 0ドル.rowLeft = PushRow<String>(){
 0ドル.selectorTitle = "E-Mail"
 0ドル.options = ["Private","Work","Others"]
 }
				
 0ドル.rowRight = TextRow(){
 0ドル.placeholder = "E-Mail"
 }
 }.onChange{
 print("SplitRow.onChange:","left:",0ドル.value?.left,"right:",0ドル.value?.right)
 }
 }
}

Requirements

  • iOS 9.3+
  • Xcode 9.0+
  • Eureka ~> 5.3.5

Getting involved

  • If you want to contribute please feel free to submit pull requests.
  • If you have a feature request please open an issue.

Authors

A-Z

About

A row for Eureka to put two rows side by side into the same UITableViewCell

Resources

Stars

57 stars

Watchers

11 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /