Latest 0.1.1
Homepage https://github.com/stfalcon-studio/StfalconFixturer-ios
License Apache License, Version 2.0
Platforms ios 12.0, requires ARC
Frameworks UIKit
Authors

A simple light-weight way to add autofilling fixtures to UITextFields for debug.

Stfalcon Fixturer

Who we are

Need iOS and Android apps, MVP development or prototyping? Contact us via [email protected] We develop software since 2009, and we’re known experts in this field. Check out our portfolio and see more libraries from stfalcon-studio.

Download

Download via Cocoapods:

 pod 'StfalconFixturer', '0.1.0'

Usage

  1. Create json file with fixtures as in example:

    [
    {
    "tag": "email",
    "group": "account",
    "values": [
      "[email protected]",
      "[email protected]",
      "[email protected]"
    ]
    },
    {
    "tag": "password",
    "group": "account",
    "values": [
      "mypassword1",
      "superpassword2",
      "mysuperpassword3"
    ]
    },
    {
    "tag": "city",
    "values": [
      "Kyiv, Ukraine",
      "San Francisco, California"
    ]
    }
    ]

    Here
    tag means the type of fixtures. You are able to specify any type you need.
    values is the array of fixtures for the particular tag.
    group (optionally) allows you to implement autofilling. That means if you choose a fixture #2 for any of the fixtured fields,
    all the other fields of that group will be autofilled with fixture #2 according to their tag.

  2. Specify your json source file’s name to Fixturer in AppDelegate:

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    // Override point for customization after application launch.
    #if DEBUG
    Fixturer.shared.specify(source: "fixtures")
    #endif
    
    return true
    }
  3. Specify Fixture Tag for particular UITextField easily in Interface Builder:

Imgur

  1. Now on triple tapping your UITextField controller will present action sheet with all the available fixtures
    according to the tag of UITextField.

License

Copyright 2018 stfalcon.com

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Latest podspec

{
    "name": "StfalconFixturer",
    "platforms": {
        "ios": "12.0"
    },
    "summary": "A simple light-weight way to add autofilling fixtures to UITextFields debug.",
    "requires_arc": true,
    "version": "0.1.1",
    "license": {
        "type": "Apache License, Version 2.0",
        "file": "LICENSE"
    },
    "authors": {
        "Alex Frankiv": "[email protected]"
    },
    "homepage": "https://github.com/stfalcon-studio/StfalconFixturer-ios",
    "source": {
        "git": "https://github.com/stfalcon-studio/StfalconFixturer-ios.git",
        "tag": "0.1.1"
    },
    "frameworks": "UIKit",
    "source_files": "StfalconFixturer/**/*.{swift}",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This