text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```swift
import Foundation
import SwiftUI
import Gridicons
// MARK: - MagicLinkRequestedView
//
struct MagicLinkRequestedView: View {
@Environment(\.presentationMode) var presentationMode
@State private var displaysFullImage: Bool = false
let email: String
var body: some View {
Navigatio... | /content/code_sandbox/Simplenote/MagicLinkRequestedView.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 535 |
```swift
//
// Preferences+IAP.swift
// Simplenote
//
// Created by Jorge Leandro Perez on 10/27/22.
//
import Foundation
// MARK: - Preferences Extensions
//
extension Preferences {
@objc
var isActiveSubscriber: Bool {
subscription_level == StoreConstants.activeSubscriptionLevel
}
@objc
... | /content/code_sandbox/Simplenote/Preferences+IAP.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 95 |
```swift
import UIKit
class NoticeController {
// MARK: Proerties
//
static let shared = NoticeController()
private var current: Notice?
private let noticePresenter: NoticePresenter
private let timerFactory: TimerFactory
private var timer: Timer? {
didSet {
oldValue?.i... | /content/code_sandbox/Simplenote/NoticeController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 507 |
```swift
import Foundation
import UIKit
import Gridicons
//import AutomatticTracks
/// Privacy: Lets our users Opt Out from any (and all) trackers.
///
class SPPrivacyViewController: SPTableViewController {
/// Switch Control: Rules the Analytics State
///
private let analyticsSwitch = UISwitch()
///... | /content/code_sandbox/Simplenote/SPPrivacyViewController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,240 |
```swift
import UIKit
// MARK: - Card dismissal animator
//
final class SPCardDismissalAnimator: NSObject, UIViewControllerAnimatedTransitioning {
private var animator: UIViewImplicitlyAnimating?
func transitionDuration(using transitionContext: UIViewControllerContextTransitioning?) -> TimeInterval {
... | /content/code_sandbox/Simplenote/SPCardDismissalAnimator.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 270 |
```swift
import Foundation
// MARK: - NSAttributedString to Markdown Converter
//
struct NSAttributedStringToMarkdownConverter {
/// Markdown replacement for "Unchecked Checklist"
///
private static let unchecked = "- [ ]"
/// Markdown replacement for "Checked Checklist"
///
private static le... | /content/code_sandbox/Simplenote/NSAttributedStringToMarkdownConverter.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 193 |
```swift
import Foundation
extension NSURLComponents {
@objc
func contentFromQuery() -> String? {
return queryItems?.first(where: { query in
query.name == "content"
})?.value
}
@objc
func tagsFromQuery() -> [String]? {
queryItems?
.filter({ $0.name =... | /content/code_sandbox/Simplenote/NSURLComponents+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 119 |
```swift
import Foundation
import UIKit
// MARK: - Value1TableViewCell
//
class Value1TableViewCell: UITableViewCell {
/// Indicates if the row is Selectable
///
var selectable: Bool = true {
didSet {
reloadTextStyles()
}
}
/// Indicates if the row has clear background... | /content/code_sandbox/Simplenote/Value1TableViewCell.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 503 |
```swift
import UIKit
// MARK: - SPShadowView
//
// SPShadowView draws outside shadow, while everyting inside is kept transparent
//
@IBDesignable
final class SPShadowView: UIView {
private let maskLayer = CAShapeLayer()
/// Corner Radius
///
@IBInspectable
var cornerRadius: CGFloat = .zero {
... | /content/code_sandbox/Simplenote/SPShadowView.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 856 |
```swift
import Foundation
/// NSObject: Helper Methods
///
extension NSObject {
/// Returns the receiver's classname as a string, not including the namespace.
///
class var classNameWithoutNamespaces: String {
return String(describing: self)
}
}
``` | /content/code_sandbox/Simplenote/NSObject+Helpers.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 52 |
```swift
/*
See LICENSE.txt for this samples licensing information
Abstract:
A struct for accessing generic password keychain items.
*/
import Foundation
enum KeychainError: Error {
case noPassword
case unexpectedPasswordData
case unexpectedItemData
case unhandledError(status: OSStatu... | /content/code_sandbox/Simplenote/KeychainPasswordItem.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,512 |
```swift
import Foundation
// MARK: - Verification
//
extension SPTracker {
static func trackVerificationReviewScreenViewed() {
trackAutomatticEvent(withName: "verification_review_screen_viewed", properties: nil)
}
static func trackVerificationVerifyScreenViewed() {
trackAutomatticEvent(w... | /content/code_sandbox/Simplenote/SPTracker+Extensions.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 805 |
```swift
import Foundation
enum BuildConfiguration: String {
case debug
case `internal`
case appStore
case release
case unknown
static var current: BuildConfiguration {
#if DEBUG
return .debug
#elseif BUILD_INTERNAL
return .internal
#elseif BUIL... | /content/code_sandbox/Simplenote/BuildConfiguration.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 146 |
```swift
import Foundation
import SwiftUI
import Gridicons
// MARK: - MagicLinkConfirmationView
//
struct MagicLinkInvalidView: View {
@Environment(\.presentationMode) var presentationMode
var onPressRequestNewLink: (() -> Void)?
var body: some View {
NavigationView {
VS... | /content/code_sandbox/Simplenote/MagicLinkInvalidView.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 531 |
```swift
import Foundation
// MARK: - SPHistoryVersion: Represents a version of an object
//
struct SPHistoryVersion {
/// Version
///
let version: Int
/// Note's Payload
///
let content: String
/// Latest modification date
///
let modificationDate: Date
/// Designated Initia... | /content/code_sandbox/Simplenote/SPHistoryVersion.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 234 |
```swift
import Foundation
@objcMembers
class StorageSettings: NSObject {
private let fileManager: FileManager
init(fileManager: FileManager = FileManager.default) {
self.fileManager = fileManager
}
/// URL for the managed object model resource
///
let modelURL = Bundle.main.url(forR... | /content/code_sandbox/Simplenote/StorageSettings.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 233 |
```swift
import Foundation
import UIKit
// MARK: - ActivityViewController Simplenote Methods
//
extension UIActivityViewController {
/// Initializes a UIActivityViewController instance that will be able to export a given Note
///
@objc
convenience init?(note: Note) {
guard let content = note.c... | /content/code_sandbox/Simplenote/UIActivityViewController+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 200 |
```swift
import Foundation
// MARK: - SPNoteHistoryController: Business logic for history view controller
//
final class SPNoteHistoryController {
// MARK: - State of the screen
//
enum State {
/// Version (is fully loaded)
/// - Parameters
/// - versionNumber: version number
... | /content/code_sandbox/Simplenote/SPNoteHistoryController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 936 |
```swift
import Foundation
import CoreData
import AutomatticTracks
@objc
class SharedStorageMigrator: NSObject {
private let storageSettings: StorageSettings
private let fileManager: FileManager
init(storageSettings: StorageSettings = StorageSettings(), fileManager: FileManager = FileManager.default) {
... | /content/code_sandbox/Simplenote/SharedStorageMigrator.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 931 |
```swift
import Foundation
import WidgetKit
// MARK: - Initialization
//
extension SPAppDelegate {
/// Simperium Initialization
/// - Important: Buckets that don't have a backing `SPManagedObject` will be dynamic. Invoking `bucketForName` will initialize sync'ing!
///
@objc
func setupSimperium() {... | /content/code_sandbox/Simplenote/SPAppDelegate+Extensions.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 3,576 |
```unknown
/* Translation-Revision-Date: 2024-08-07 17:54:03+0000 */
/* Plural-Forms: nplurals=2; plural=n != 1; */
/* Generator: GlotPress/2.4.0-alpha */
/* Language: he_IL */
/* No comment provided by engineer. */
"%d Result" = " %d";
/* Number of found search results */
"%d Results" = "%d ";
/* Number of failed e... | /content/code_sandbox/Simplenote/he.lproj/Localizable.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 7,212 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orienta... | /content/code_sandbox/Simplenote/Information/NoteInformationViewController.xib | xml | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,232 |
```swift
import UIKit
import SimplenoteFoundation
// MARK: - NoteInformationViewController
//
final class NoteInformationViewController: UIViewController {
@IBOutlet private weak var tableView: UITableView!
@IBOutlet private weak var dragBar: SPDragBar!
private var transitioningManager: UIViewControllerTr... | /content/code_sandbox/Simplenote/Information/NoteInformationViewController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,792 |
```unknown
/* Translation-Revision-Date: 2024-08-07 09:54:03+0000 */
/* Plural-Forms: nplurals=2; plural=n != 1; */
/* Generator: GlotPress/2.4.0-alpha */
/* Language: it */
/* No comment provided by engineer. */
"%d Result" = "%d Resultato";
/* Number of found search results */
"%d Results" = "%d Resultati";
/* Num... | /content/code_sandbox/Simplenote/it.lproj/Localizable.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 9,383 |
```swift
import Foundation
import SimplenoteFoundation
final class NoteInformationController {
/// Section
///
struct Section {
let rows: [Row]
}
/// Row
///
enum Row {
/// Metric row
///
case metric(title: String, value: String?)
/// Reference
... | /content/code_sandbox/Simplenote/Information/NoteInformationController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,184 |
```unknown
//
// Prefix header
//
// The contents of this file are implicitly included at the beginning of every source file.
//
#import <Availability.h>
#ifndef __IPHONE_3_0
#warning "This project uses features only available in iOS SDK 3.0 and later."
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#impor... | /content/code_sandbox/Simplenote/Supporting Files/Simplenote-Prefix.pch | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 116 |
```objective-c
//
// main.m
// Simplenote
//
// Created by Tom Witkin on 7/3/13.
//
#import <UIKit/UIKit.h>
#import "SPAppDelegate.h"
int main(int argc, char * argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([SPAppDelegate class]));
}
}
``` | /content/code_sandbox/Simplenote/Supporting Files/main.m | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 75 |
```unknown
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url">
<plist version="1.0">
<dict>
<key>com.apple.developer.associated-domains</key>
<array>
<string>webcredentials:simplenote.com</string>
<string>applinks:app.simplenote.com</string>
</array>
<key>c... | /content/code_sandbox/Simplenote/Supporting Files/Simplenote.entitlements | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 175 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>$(DISPLAY_NAME)</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE... | /content/code_sandbox/Simplenote/Supporting Files/Simplenote-Info.plist | xml | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,039 |
```unknown
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url">
<plist version="1.0">
<dict>
<key>com.apple.developer.associated-domains</key>
<array>
<string>webcredentials:simplenote.com</string>
<string>applinks:app.simplenote.com</string>
</array>
<key>c... | /content/code_sandbox/Simplenote/Supporting Files/Simplenote-Internal.entitlements | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 175 |
```unknown
/* Translation-Revision-Date: 2024-08-07 09:54:03+0000 */
/* Plural-Forms: nplurals=1; plural=0; */
/* Generator: GlotPress/2.4.0-alpha */
/* Language: ko_KR */
/* No comment provided by engineer. */
"%d Result" = " %d";
/* Number of found search results */
"%d Results" = " %d";
/* Number of failed entrie... | /content/code_sandbox/Simplenote/ko.lproj/Localizable.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 7,118 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/it.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/he.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/ko.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/ja.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/fa.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url">
<plist version="1.0">
<dict>
<key>INEnums</key>
<array/>
<key>INIntentDefinitionModelVersion</key>
<string>1.2</string>
<key>INIntentDefinitionNamespace</key>
<string>BxdWY5</string>
<key>INInten... | /content/code_sandbox/Simplenote/Supporting Files/Base.lproj/ShortcutIntents.intentdefinition | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 10,057 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/nl.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/fr.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/zh-Hans-CN.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/id.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/ar.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/ru.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/sv.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/pt-BR.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/cy.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/es.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/el.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/zh-Hant-TW.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/de.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/tr.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
"4OEbmY" = "note";
"Ag8ugh" = "Create New Note With Content";
"CNjhWs" = "Create new note with ${content}";
"CUkV8q" = "Note";
"EeqvcH" = "Append content to an existing note in Simplenote";
"I19gXv" = "Note";
"IIfrvb" = "Intent Tag";
"IQnYW1" = "Open Note";
"MdiZid" = "Just to confirm, you wanted ${n... | /content/code_sandbox/Simplenote/Supporting Files/en.lproj/ShortcutIntents.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 598 |
```unknown
/* Translation-Revision-Date: 2024-08-02 02:10:07+0000 */
/* Plural-Forms: nplurals=1; plural=0; */
/* Generator: GlotPress/2.4.0-alpha */
/* Language: fa */
/* Password Requirement: Length */
"- Minimum of 8 characters" = "- ";
/* Password Requirement: Special Characters */
"- Neither tabs nor newlines ... | /content/code_sandbox/Simplenote/fa.lproj/Localizable.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,421 |
```unknown
/* Translation-Revision-Date: 2024-08-07 09:54:03+0000 */
/* Plural-Forms: nplurals=1; plural=0; */
/* Generator: GlotPress/2.4.0-alpha */
/* Language: ja_JP */
/* No comment provided by engineer. */
"%d Result" = "%d";
/* Number of found search results */
"%d Results" = "%d";
/* Number of failed entries ... | /content/code_sandbox/Simplenote/ja.lproj/Localizable.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 6,724 |
```swift
import Foundation
// MARK: - CGRect Methods
//
extension CGRect {
/// Returns the resulting Rectangles by splitting the receiver in two, by the specified Rectangle's **minY** and **maxY**
/// - Note: We rely on this API to determine the available editing area above and below the cursor
///
fu... | /content/code_sandbox/Simplenote/Classes/CGRect+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 148 |
```objective-c
#import <Foundation/Foundation.h>
/**
* @class SPTracker
* @brief This class is meant to aid in the app's event tracking. We'll relay the appropriate events to
* either Automattic Tracks, or Google Analytics.
*/
@interface SPTracker : NSObject
#pragma mark - Metadata
+ (v... | /content/code_sandbox/Simplenote/Classes/SPTracker.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 805 |
```swift
import Foundation
import SimplenoteFoundation
import SimplenoteSearch
// MARK: - NotesListController
//
class NotesListController: NSObject {
/// Main Context
///
private let viewContext: NSManagedObjectContext
/// Notes Controller
///
private lazy var notesController = ResultsContro... | /content/code_sandbox/Simplenote/Classes/NotesListController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,794 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_1" orientation="landscape" ap... | /content/code_sandbox/Simplenote/Classes/SPRatingsPromptView.xib | xml | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,847 |
```swift
import UIKit
// MARK: - ApplicationStateProvider
//
extension UIApplication: ApplicationStateProvider {
}
extension UIApplication {
@objc
var keyWindowStatusBarHeight: CGSize {
guard let keyWindow = foregroundSceneWindows.first(where: { $0.isKeyWindow }) else {
return .zero
... | /content/code_sandbox/Simplenote/Classes/UIApplication+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 245 |
```swift
import Foundation
import MessageUI
import SafariServices
// MARK: - SPFeedbackManager
//
@objcMembers
class SPFeedbackManager: NSObject {
/// Ladies and gentlemen, yet another Singleton!
///
static let shared = SPFeedbackManager()
/// Let's just hide the initializer?
///
private over... | /content/code_sandbox/Simplenote/Classes/SPFeedbackManager.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 285 |
```swift
import UIKit
// MARK: - UIResponder
//
extension UIResponder {
private static weak var _currentFirstResponder: UIResponder?
static var currentFirstResponder: UIResponder? {
_currentFirstResponder = nil
UIApplication.shared.sendAction(#selector(UIResponder.findFirstResponder(_:)), to: ... | /content/code_sandbox/Simplenote/Classes/UIResponder+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 100 |
```swift
import Foundation
// MARK: - UIKeyCommand
//
extension UIKeyCommand {
static var inputLeadingArrow: String {
return UIApplication.isRTL ? UIKeyCommand.inputRightArrow : UIKeyCommand.inputLeftArrow
}
static var inputTrailingArrow: String {
return UIApplication.isRTL ? UIKeyCommand... | /content/code_sandbox/Simplenote/Classes/UIKeyCommand+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 164 |
```swift
import UIKit
// MARK: SignupVerificationViewController
//
class SignupVerificationViewController: UIViewController {
@IBOutlet private weak var iconView: UIImageView! {
didSet {
iconView.tintColor = .simplenoteTitleColor
}
}
@IBOutlet private weak var textLabel: UILab... | /content/code_sandbox/Simplenote/Classes/SignupVerificationViewController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 578 |
```unknown
/* Translation-Revision-Date: 2024-08-08 11:54:03+0000 */
/* Plural-Forms: nplurals=2; plural=n != 1; */
/* Generator: GlotPress/2.4.0-alpha */
/* Language: nl */
/* No comment provided by engineer. */
"%d Result" = "%d resultaat";
/* Number of found search results */
"%d Results" = "%d resultaten";
/* Nu... | /content/code_sandbox/Simplenote/nl.lproj/Localizable.strings | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 9,672 |
```objective-c
//
// TWAcitivityOpenInSafari.m
// Poster
//
// 8/17/12.
//
//
#import "SPAcitivitySafari.h"
@implementation SPAcitivitySafari
- (NSString *)activityType
{
return @"SPAcitivitySafari";
}
- (NSString *)activityTitle
{
return @"Safari";
}
- (UIImage *)activityImage {
return [UIImag... | /content/code_sandbox/Simplenote/Classes/SPAcitivitySafari.m | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 246 |
```swift
import Foundation
import UIKit
// MARK: - Simplenote's UIImage Static Methods
//
extension UIImage {
/// Returns the UIColor instance matching a given UIColorName. If any
///
@objc
static func image(name: UIImageName) -> UIImage? {
UIImage(named: name.lightAssetFilename)
}
}
``` | /content/code_sandbox/Simplenote/Classes/UIImage+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 69 |
```objective-c
//
// NSString+Attributed.m
// Simplenote
//
// Created by Tom Witkin on 9/2/13.
//
#import "NSString+Attributed.h"
@implementation NSString (Attributed)
- (NSAttributedString *)attributedString {
return [[NSAttributedString alloc] initWithString:self];
}
- (NSMutableAttributedString *)mu... | /content/code_sandbox/Simplenote/Classes/NSString+Attributed.m | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 89 |
```objective-c
//
// Settings.m
// Simplenote
//
// Created by Jorge Leandro Perez on 3/16/15.
//
#import "Settings.h"
@implementation Settings
@dynamic ghostData;
@dynamic simperiumKey;
@dynamic ratings_disabled;
@dynamic minimum_events;
@dynamic minimum_interval_days;
@dynamic like_skip_versions;
@dynamic de... | /content/code_sandbox/Simplenote/Classes/Settings.m | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 79 |
```objective-c
//
// UITextView+Simplenote.m
// Simplenote
//
// Created by Jorge Leandro Perez on 3/25/15.
//
#import "UITextView+Simplenote.h"
#import "NSString+Bullets.h"
#pragma mark ====================================================================================
#pragma mark NSTextView (Simplenote)
#pra... | /content/code_sandbox/Simplenote/Classes/UITextView+Simplenote.m | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,227 |
```swift
import Foundation
import SimplenoteFoundation
// MARK: - SPObjectManager
//
extension SPObjectManager {
var managedObjectContext: NSManagedObjectContext {
return SPAppDelegate.shared().managedObjectContext
}
@objc
func newDefaultNote() -> Note {
guard let note = NSEntityDescr... | /content/code_sandbox/Simplenote/Classes/SPObjectManager+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 413 |
```objective-c
#import "StatusChecker.h"
#import "Note.h"
@import Simperium;
#pragma mark ================================================================================
#pragma mark Workaround: Exposing Private SPBucket methods
#pragma mark ==========================================================================... | /content/code_sandbox/Simplenote/Classes/StatusChecker.m | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 303 |
```swift
import Foundation
import UIKit
// MARK: - UIFont Simplenote Helpers
//
extension UIFont {
/// Default Asset Height Multiplier
///
static let defaultInlineAssetSizeMultiplier = CGFloat(0.7)
/// Returns the (Expected) InlineAsset Height: We consider the lineHeight, and apply a (default) multip... | /content/code_sandbox/Simplenote/Classes/UIFont+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 666 |
```objective-c
//
// WPAuthHandler.m
// Simplenote
// Handles oauth authentication with WordPress.com
//
#import <Foundation/Foundation.h>
#import <SafariServices/SafariServices.h>
#import "WPAuthHandler.h"
#import "SPConstants.h"
#import "SPTracker.h"
#import "Simplenote-Swift.h"
@import Simperium;
static NSStr... | /content/code_sandbox/Simplenote/Classes/WPAuthHandler.m | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 904 |
```swift
import Foundation
import UIKit
import SimplenoteFoundation
// MARK: - OptionsControllerDelegate
//
protocol OptionsControllerDelegate: AnyObject {
func optionsControllerDidPressHistory(_ sender: OptionsViewController)
func optionsControllerDidPressShare(_ sender: OptionsViewController)
func option... | /content/code_sandbox/Simplenote/Classes/OptionsViewController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 3,111 |
```objective-c
#import <Foundation/Foundation.h>
extern NSString *const SPTransitionControllerPopGestureTriggeredNotificationName;
@protocol SPInteractiveDismissableViewController
@property (readonly) BOOL requiresFirstResponderRestorationBypass;
@end
@interface SPTransitionController : NSObject <UINavigationCont... | /content/code_sandbox/Simplenote/Classes/SPTransitionController.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 67 |
```objective-c
//
// NSString+Bullets.m
// Simplenote
//
// Created by Tom Witkin on 8/25/13.
//
#import "NSString+Bullets.h"
#pragma mark ====================================================================================
#pragma mark Constants
#pragma mark ======================================================... | /content/code_sandbox/Simplenote/Classes/NSString+Bullets.m | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 205 |
```swift
import Foundation
// MARK: - NSAttributedString + AuthError Helpers
//
extension NSAttributedString {
/// Returns an Attributed String that translates a Networking Error into human friendly text.
///
/// - Parameters:
/// - statusCode: Response Status Code
/// - response: Response... | /content/code_sandbox/Simplenote/Classes/NSAttributedString+AuthError.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 478 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17156" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orienta... | /content/code_sandbox/Simplenote/Classes/OptionsViewController.xib | xml | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 916 |
```objective-c
//
// SPMarkdownPreviewViewController.m
// Simplenote
//
// Created by James Frost on 01/10/2015.
//
#import "SPMarkdownPreviewViewController.h"
#import "SPMarkdownParser.h"
#import "Simplenote-Swift.h"
@import WebKit;
@import SafariServices;
@interface SPMarkdownPreviewViewController () <WKNavigat... | /content/code_sandbox/Simplenote/Classes/SPMarkdownPreviewViewController.m | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,014 |
```swift
import Foundation
import CoreSpotlight
import Intents
// MARK: - AppDelegate Shortcuts Methods
//
class ShortcutsHandler: NSObject {
/// This is, gentlemen, a singleton.
///
@objc
static var shared = ShortcutsHandler()
/// Is User authenticated?
///
private var isAuthenticated: B... | /content/code_sandbox/Simplenote/Classes/ShortcutsHandler.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,107 |
```objective-c
//
// Settings.h
// Simplenote
//
// Created by Jorge Leandro Perez on 3/16/15.
//
#import <Simperium/SPManagedObject.h>
@interface Settings : SPManagedObject
@property (nonatomic, copy) NSString *ghostData;
@property (nonatomic, copy) NSString *simperiumKey;
@property (nonatomic, strong) NSN... | /content/code_sandbox/Simplenote/Classes/Settings.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 147 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orienta... | /content/code_sandbox/Simplenote/Classes/InterlinkViewController.xib | xml | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 961 |
```swift
import Foundation
import UIKit
extension UIAlertController {
@discardableResult @objc
func addCancelActionWithTitle(_ title: String?, handler: ((UIAlertAction) -> Void)? = nil) -> UIAlertAction {
return addActionWithTitle(title, style: .cancel, handler: handler)
}
@discardableResult ... | /content/code_sandbox/Simplenote/Classes/UIAlertController+Helpers.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 295 |
```objective-c
//
// SPEntryListViewController.h
// Simplenote
//
// Created by Tom Witkin on 8/19/13.
//
#import <UIKit/UIKit.h>
#import "SPTextField.h"
@interface SPEntryListViewController : UIViewController <UITableViewDataSource, UITableViewDelegate, UITextFieldDelegate> {
UITableView *primaryTableVie... | /content/code_sandbox/Simplenote/Classes/SPEntryListViewController.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 215 |
```objective-c
#import <Foundation/Foundation.h>
@class Simperium;
#pragma mark ================================================================================
#pragma mark StatusChecker
#pragma mark ================================================================================
@interface StatusChecker : NSObje... | /content/code_sandbox/Simplenote/Classes/StatusChecker.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 51 |
```swift
import Foundation
// MARK: - Simplenote UserDefaults Keys
//
extension UserDefaults {
enum Key: String {
case condensedNotes = "SPCondensedNoteListPref"
case firstLaunch = "SPFirstLaunch"
case lastKnownVersion
case listSortMode
case listSortModeLegacy = "SPAlphabeti... | /content/code_sandbox/Simplenote/Classes/UserDefaults+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 568 |
```swift
import Foundation
import UIKit
// MARK: - Renders a customized Action Sheet
//
class SPSheetController: UIViewController {
/// Dimming Background
///
@IBOutlet private var backgroundView: UIView!
/// View containing the bottom actions
///
@IBOutlet private var actionsView: UIView!
... | /content/code_sandbox/Simplenote/Classes/SPSheetController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 889 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orienta... | /content/code_sandbox/Simplenote/Classes/SPNoteTableViewCell.xib | xml | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 2,668 |
```swift
import Foundation
// MARK: - Simplenote's Upgrade handling flows
//
class MigrationsHandler: NSObject {
/// Returns the Runtime version
///
private let runtimeVersion = Bundle.main.shortVersionString
/// Stores the last known version.
///
private var lastKnownVersion: String {
... | /content/code_sandbox/Simplenote/Classes/MigrationsHandler.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 242 |
```swift
import Foundation
import CoreSpotlight
// MARK: - Simplenote's NSUserActivities
//
extension NSUserActivity {
/// Registers the Launch Activity
///
@objc
class func launchActivity() -> NSUserActivity {
let title = NSLocalizedString("Open Simplenote", comment: "Siri Suggestion to open ... | /content/code_sandbox/Simplenote/Classes/NSUserActivity+Shortcuts.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 302 |
```objective-c
//
// PersonTag.m
// Simplenote
//
// Created by Michael Johnston on 11-08-23.
//
#import "PersonTag.h"
@implementation PersonTag
- (instancetype)initWithName:(NSString *)aName email:(NSString *)anEmail
{
if ((self = [super init])) {
self.name = aName;
self.email = anEmail;
... | /content/code_sandbox/Simplenote/Classes/PersonTag.m | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 274 |
```swift
import Foundation
import UIKit
// MARK: - SPNoteTableViewCell
//
@objcMembers
class SPNoteTableViewCell: UITableViewCell {
/// Title Label
///
@IBOutlet private var titleLabel: UILabel!
/// Body Label
///
@IBOutlet private var bodyLabel: UILabel!
/// Note's Left Accessory ImageV... | /content/code_sandbox/Simplenote/Classes/SPNoteTableViewCell.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 2,881 |
```swift
import Foundation
// MARK: - ApplicationShortcutItemType: Types of application shortcuts
//
enum ApplicationShortcutItemType: String {
case search
case newNote
case note
}
``` | /content/code_sandbox/Simplenote/Classes/ApplicationShortcutItemType.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 39 |
```swift
import Foundation
import SimplenoteEndpoints
// MARK: - SPAuthError
//
enum SPAuthError: Error {
case loginBadCredentials
case signupBadCredentials
case signupUserAlreadyExists
case network
case compromisedPassword
case unverifiedEmail
case tooManyAttempts
case generic
cas... | /content/code_sandbox/Simplenote/Classes/SPAuthError.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,104 |
```swift
import Foundation
import UIKit
// MARK: - UITraitCollection Simplenote Methods
//
extension UITraitCollection {
/// Returns a UITraitCollection that *only* contains the Light Interface Style. No other attribute is initialized
///
static var purelyLightTraits: UITraitCollection {
UITraitCo... | /content/code_sandbox/Simplenote/Classes/UITraitCollection+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 124 |
```swift
import Foundation
import UIKit
// MARK: - UIBezierPath Methods
//
extension UIBezierPath {
/// Returns an UIImage representation of the receiver.
///
func imageRepresentation(color: UIColor) -> UIImage {
return UIGraphicsImageRenderer(size: bounds.size).image { [unowned self] context in
... | /content/code_sandbox/Simplenote/Classes/UIBezierPath+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 84 |
```objective-c
//
// SPCollaboratorCell.h
// Simplenote
//
// Created by Tom Witkin on 7/27/13.
//
#import <UIKit/UIKit.h>
@interface SPEntryListCell : UITableViewCell {
UILabel *primaryLabel;
UILabel *secondaryLabel;
UIImageView *checkmarkImageView;
}
- (void)setupWithPrimaryText:(NSString *)pri... | /content/code_sandbox/Simplenote/Classes/SPEntryListCell.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 100 |
```swift
import UIKit
// MARK: - UITextInput
//
extension UITextInput {
/// Returns NSRange from UITextRange
///
var selectedRange: NSRange? {
guard let range = selectedTextRange else { return nil }
let location = offset(from: beginningOfDocument, to: range.start)
let length = offse... | /content/code_sandbox/Simplenote/Classes/UITextInput+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 95 |
```swift
import UIKit
// MARK: - RoundedView
//
class RoundedView: UIView {
override var bounds: CGRect {
didSet {
guard bounds.size != oldValue.size else {
return
}
updateCornerRadius()
}
}
override init(frame: CGRect) {
super.i... | /content/code_sandbox/Simplenote/Classes/RoundedView.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 148 |
```swift
import Foundation
// MARK: - NSString Simplenote Helpers
//
extension NSString {
/// Returns the full range of the receiver
///
@objc
var fullRange: NSRange {
NSRange(location: .zero, length: length)
}
/// Encodes the receiver as a `Tag Hash`
///
@objc
var byEncod... | /content/code_sandbox/Simplenote/Classes/NSString+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 164 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.