Swiftpack.co - yhkaplan/MoonWalker as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by yhkaplan.
yhkaplan/MoonWalker v0.26.0
A simple iOS Walkthrough framework
⭐️ 1
🕓 3 years ago
iOS
.package(url: "https://github.com/yhkaplan/MoonWalker.git", from: "v0.26.0")

MoonWalker

Build status Platform iOS Swift 5.2 compatible Carthage compatible CocoaPods compatible License: MIT

By yhkaplan.

Introduction

MoonWalker is an easy to use walkthrough library.

Usage

import MoonWalker
// ...

Requirements

  • iOS 11.0+
  • Xcode 11.0+

Getting involved

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

Before contribute check the CONTRIBUTING file for more info.

Usage

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

        let views = [0, 1, 2].map { index -> MWChildViewModel in

            let upperLabel = MWUpperLabelSettings(text: "Screen \(index)")
            let image = UIImage(named: "screen\(index)")
            let backgroundImage = MWBackgroundImageSettings(image: image)

            return MWChildViewModel(upperLabel: upperLabel, backgroundImage: backgroundImage)
        }

        let creator = MWParentViewCreator(childViews: views)
        let walkthroughVC = creator.getParentViewController()

        window!.rootViewController = walkthroughVC
        window!.makeKeyAndVisible()

        return true
    }

Examples

Follow these 3 steps to run Example project: clone MoonWalker repository, open MoonWalker workspace and run the Example project.

Installation

  • If you are having issues installing, then it may be due to an old version of Sourcery that is incompatible with the latest file format. To fix this, please a). upgrade or b) uninstall sourcery.

Swift Package Manager

Add via Xcode in the usual way

CocoaPods

CocoaPods is a dependency manager for Cocoa projects.

To install MoonWalker, simply add the following line to your Podfile:

pod 'MoonWalker', '~> 1.0'

Carthage

Carthage is a simple, decentralized dependency manager for Cocoa.

To install MoonWalker, simply add the following line to your Cartfile:

github "yhkaplan/MoonWalker" ~> 1.0

Author

Changelog

See CHANGELOG.

GitHub

link
Stars: 1
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics