Git Product home page Git Product logo

skutils's Introduction

SKUtils

UI components

pod 'SKActivityViewable'
pod 'SKAlertViewable'
pod 'AlertActionBuilder'
pod 'SKAlertControllerBuilder'
pod 'SKAlertControllerShowing'
pod 'SKTextInputsManager'
pod 'SKTextInputs'
pod 'SKPickerViewManager'
pod 'SKAppSettingsShowing'
pod 'SKImagePicking'
pod 'SKImagePreviewing'

Capabilities permissions

pod 'SKBluetoothPermissions'
pod 'SKCameraPermissions'
pod 'SKPhotosPermissions'
pod 'SKContactsPermissions'
pod 'SKMicrophonePermissions'
pod 'SKLocationPermissions'

Services

pod 'SKLocalDataStorage'
pod 'SKValidationService'

Data Sources

pod 'SKDataSources'

Networking

pod 'SKNetworkingLib'

Custom Navigation

pod 'SKCustomNavigation'

Animations

pod 'SKAnimator'

Runes Example

Functor
<^> (pronounced "map")
Applicative Functor
<> (pronounced "apply")
<
(pronounced "left sequence")
*> (pronounced "right sequence")
pure (pronounced "pure")
Alternative
<|> (pronounced "alternate")
empty (pronounced "empty")
Monad
>>- (pronounced "flatMap") (left associative)
-<< (pronounced "flatMap") (right associative)
>-> (pronounced "Monadic compose") (left associative)
<-< (pronounced "Monadic compose") (right associative)

func customPrint(value: Any) {
print(value)
}

print("*********")

customPrint -<< [1, 2, 3, 4, 5]
customPrint -<< nil
customPrint -<< "not nil"

print("*********")

[1, 2, 3, 4, 5] >>- customPrint
nil >>- customPrint
"not nil" >>- customPrint

print("*********")

print("not nil" <|> "another value") // Optional("not nil")
print(nil <|> "another value") // Optional("another value")

print("*********")

print(["array"] + pure("some string")) // ["array", "some string"]

print("*********")

customPrint <> [1, 2, 3, 4, 5] // prints array
customPrint <
> "value" // prints value
customPrint <*> nil // not printing

print("*********")

customPrint <^> [1, 2, 3, 4, 5] // print each value
customPrint <^> "value" // value
customPrint <^> nil // not printing

print("*********")

customPrint <*> (nil <|> "not nil") // not nil

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.