Skip to content

Instantly share code, notes, and snippets.

View pradeepb28's full-sized avatar
🎯
Focusing

pradeep pradeepb28

🎯
Focusing
View GitHub Profile
@rhysforyou
rhysforyou / UIKitExtensions.swift
Created October 12, 2015 23:25
ReactiveCocoa 4 UIKit Extensions
//
// UIKitExtensions.swift
// ReactiveForms
//
// Created by Rhys Powell on 12/10/2015.
// Copyright © 2015 Rhys Powell. All rights reserved.
//
import Foundation
import ReactiveCocoa
@JaviLorbada
JaviLorbada / FRP iOS Learning resources.md
Last active July 11, 2025 21:46
The best FRP iOS resources.

Videos

@kristopherjohnson
kristopherjohnson / pasteboard.swift
Created January 11, 2015 00:58
Utility functions to copy/paste text
import Foundation
#if os(iOS)
import UIKit
#else
import AppKit
#endif
/// Return string value currently on clipboard
func getPasteboardContents() -> String? {
@calebd
calebd / ArrayHelpers.swift
Last active January 29, 2025 06:05
Swift Helpers
extension Array {
func first() -> Element? {
if isEmpty {
return nil
}
return self[0]
}
func last() -> Element? {
@codeswimmer
codeswimmer / ios_simple_pasteboard.m
Created January 2, 2013 20:10
iOS: Simple Usage Of UIPasteBoard
Basically, UIPasteBoard allows us to share data to other application. Below is an example of UIpasteBoard usage.
COPY
UIPasteboard *appPasteBoard = [UIPasteboard generalPasteboard];
appPasteBoard.persistent = YES;
[appPasteBoard setString:@"STRING TO COPY"];
PASTE