Skip to content

Instantly share code, notes, and snippets.

//
// SiriWaveView.swift
//
// Created by Roman Kyrylenko on 1/22/17.
// Copyright © 2017 pr0ctopus. All rights reserved.
//
import UIKit
@IBDesignable public final class SiriWaveView: UIView {
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}")
buildNumber=$(($buildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}"
//
// MessageIntentHandler.swift
//
// Created by Roman Kyrylenko on 22/02/17.
// Copyright © 2017 Yalantis. All rights reserved.
// https://yalantis.com
//
class MessagesIntentHandler: NSObject, INSendMessageIntentHandling, NetworkClientInjectable {
//
// GridView.swift
// GridView
//
// Created by Roman Kyrylenko on 4/17/17.
// Copyright © 2017 pr0ctopus. All rights reserved.
//
import UIKit
//
// RippleButton.swift
// RippleButton
//
// Created by Roman Kyrylenko on 6/2/17.
// Copyright © 2017 pr0ctopus. All rights reserved.
//
import UIKit
@rnkyr
rnkyr / PrivacyTableViewCell.swift
Created March 15, 2018 15:31
An example on how to setup links inside UITextView
//
// PrivacyTableViewCell.swift
//
// Created by Roman Kyrylenko on 5/22/17.
// Copyright © 2017 pr0ctopus. All rights reserved.
//
private let privacyScheme = "privacy"
private let termsScheme = "terms"
//
// Logger.swift
//
// Created by Roman Kyrylenko on 5/25/17.
// Copyright © 2017 pr0ctopus. All rights reserved.
//
import Foundation
#if canImport(Firebase)
@rnkyr
rnkyr / cart.rb
Created April 2, 2018 22:15
An semi-automation script for Carthage dependency manager
#!/usr/bin/ruby
# An semi-automation script for Carthage dependency manager
# It performs linking and copy-frameworks phase creation
# Basic usage examples:
# ruby ~/dev/cart.rb -d "~/Desktop/MyProject" -l
# ruby ~/dev/cart.rb -d "~/Desktop/MyProject" -tar "Core" -t "RxSwift, Bolts-Swift"
# ruby ~/dev/cart.rb -d "~/Desktop/MyProject" -s "RxSwift, Bolts-Swift"
# Or you can create a Run Script phase (in dedicated Aggregate Target) which will run carthage as well.
import Foundation
public protocol NavigationEvent {}
public protocol NavigationEventDrivenInterface {
func raise<T: NavigationEvent>(event: T)
func addHandler<T: NavigationEvent>(_ handler: @escaping (T) -> Void)
}
@rnkyr
rnkyr / .gitignore
Last active January 8, 2021 11:49
Generic gitignore file I'm currently using for iOS projects
.DS_Store
# Build generated
build/
DerivedData/
# Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3