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
```xml <?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17154" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <device id="retina6_1" orienta...
/content/code_sandbox/Simplenote/Classes/SPOnboardingViewController.xib
xml
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
3,513
```objective-c #import "SPNoteListViewController.h" #import "SPSettingsViewController.h" #import "SPNavigationController.h" #import "SPNoteEditorViewController.h" #import "SPAppDelegate.h" #import "SPTransitionController.h" #import "SPTextView.h" #import "SPObjectManager.h" #import "SPTracker.h" #import "SPRatingsHelp...
/content/code_sandbox/Simplenote/Classes/SPNoteListViewController.m
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
4,903
```swift import UIKit // MARK: - TagListTextField // class TagListTextField: UITextField { override func paste(_ sender: Any?) { pasteTag() } } ```
/content/code_sandbox/Simplenote/Classes/TagListTextField.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
37
```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/SortModePickerViewController.xib
xml
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
883
```objective-c // // SPNotifications.m // Simplenote // // #import "SPNotifications.h" #pragma mark ================================================================================ #pragma mark Notifications #pragma mark ================================================================================ NSString *co...
/content/code_sandbox/Simplenote/Classes/SPNotifications.m
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
144
```objective-c // // SPEditorTextView.h // Simplenote // // Created by Tom Witkin on 8/16/13. // #import "SPTextView.h" @protocol SPEditorTextViewDelegate <UITextViewDelegate> - (void)textView:(UITextView *)textView receivedInteractionWithURL:(NSURL *)url; @end @interface SPEditorTextView : SPTextView @property...
/content/code_sandbox/Simplenote/Classes/SPEditorTextView.h
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
277
```objective-c #import "NSString+Metadata.h" @implementation NSString (Metadata) - (NSArray *)stringArray { NSMutableArray *list = [NSMutableArray arrayWithArray: [self componentsSeparatedByString:@" "]]; NSMutableArray *discardedItems = [NSMutableArray array]; NSString *str; for (str in list) { if ([str leng...
/content/code_sandbox/Simplenote/Classes/NSString+Metadata.m
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
101
```swift import Foundation import SimplenoteFoundation // MARK: - InterlinkResultsController // class InterlinkResultsController { /// ResultsController: In charge of CoreData Queries! /// private let resultsController: ResultsController<Note> /// Limits the maximum number of results to fetch ///...
/content/code_sandbox/Simplenote/Classes/InterlinkResultsController.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
533
```swift import Foundation import UIKit import SafariServices import SwiftUI // MARK: - SPOnboardingViewController // class SPOnboardingViewController: UIViewController, SPAuthenticationInterface { /// Message: Container View /// @IBOutlet var messageView: UIView! /// Message: Text Label /// ...
/content/code_sandbox/Simplenote/Classes/SPOnboardingViewController.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
1,718
```swift import Foundation // MARK: - FileStorage // class FileStorage<T: Codable> { private let fileURL: URL private lazy var decoder = JSONDecoder() private lazy var encoder = JSONEncoder() init(fileURL: URL) { self.fileURL = fileURL } /// Load an object /// func load() thr...
/content/code_sandbox/Simplenote/Classes/FileStorage.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
145
```objective-c // // SPInteractivePushPopAnimationController.h // Simplenote // // Created by James Frost on 08/10/2015. // #import <UIKit/UIKit.h> @class SPInteractivePushPopAnimationController; @protocol SPInteractivePushViewControllerProvider <NSObject> - (UIViewController *)nextViewControllerForInteractivePus...
/content/code_sandbox/Simplenote/Classes/SPInteractivePushPopAnimationController.h
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
275
```swift import UIKit // MARK: - TagViewDelegate // protocol TagViewDelegate: AnyObject { func tagView(_ tagView: TagView, wantsToCreateTagWithName name: String) func tagView(_ tagView: TagView, wantsToRemoveTagWithName name: String) func tagViewDidBeginEditing(_ tagView: TagView) func tagViewDidChang...
/content/code_sandbox/Simplenote/Classes/TagView.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
1,958
```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/TagListViewController.xib
xml
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
1,237
```swift import Foundation // MARK: - UIActivity <> WordPress iOS! // extension UIActivity.ActivityType { /// WordPress Draft Extension (AppStore) /// static var wordPressDraftAppStore: UIActivity.ActivityType { return UIActivity.ActivityType("org.wordpress.WordPressDraftAction") } /// Wo...
/content/code_sandbox/Simplenote/Classes/UIActivity+Simplenote.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
263
```xml <?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17506" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <device id="retina6_1" orienta...
/content/code_sandbox/Simplenote/Classes/SPNoteHistoryViewController.xib
xml
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
2,523
```objective-c // // SPSimperiumManager.h // Simplenote // // Created by Tom Witkin on 7/26/13. // #import <Foundation/Foundation.h> @class Note; @class Tag; NS_ASSUME_NONNULL_BEGIN @interface SPObjectManager : NSObject + (SPObjectManager *)sharedManager; - (NSArray<Note *> *)notes; - (NSArray<Tag *> *)tags; ...
/content/code_sandbox/Simplenote/Classes/SPObjectManager.h
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
337
```objective-c #import "NSString+Condensing.h" @implementation NSString (Condensing) - (NSString *)stringByReplacingNewlinesWithSpaces { if (self.length == 0) { return self; } // Newlines: \n *AND* \r's! NSMutableArray *components = [[self componentsSeparatedByCharactersInSet:[NSCharacterSet ...
/content/code_sandbox/Simplenote/Classes/NSString+Condensing.m
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
124
```swift import Foundation import UIKit // MARK: - SPDiagnosticsViewController // class SPDiagnosticsViewController: UIViewController { /// Label: Title /// @IBOutlet private var titleLabel: UILabel! /// TextView: Details /// @IBOutlet private var detailsTextView: UITextView! /// Text to...
/content/code_sandbox/Simplenote/Classes/SPDiagnosticsViewController.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
422
```swift // // CSSearchableItem+Helpers.swift // Simplenote // // Created by Michal Kosmowski on 25/11/2016. // import Foundation import CoreSpotlight import MobileCoreServices import UniformTypeIdentifiers extension CSSearchableItemAttributeSet { convenience init(note: Note) { self.init(contentType: ...
/content/code_sandbox/Simplenote/Classes/CSSearchable+Helpers.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
577
```swift import Foundation // MARK: - NotesListSection // struct NotesListSection { /// Section Title /// let title: String? /// Section Objects /// let objects: [Any] /// Returns the number of Objects in the current section /// var numberOfObjects: Int { objects.count ...
/content/code_sandbox/Simplenote/Classes/NotesListSection.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
93
```swift import Foundation // MARK: - UITableView Simplenote Methods // extension UITableView { /// Applies Simplenote's Style for Grouped TableVIews /// @objc func applySimplenoteGroupedStyle() { backgroundColor = .simplenoteTableViewBackgroundColor separatorColor = .simplenoteDivider...
/content/code_sandbox/Simplenote/Classes/UITableView+Simplenote.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
1,203
```swift import Foundation import UIKit import SafariServices import SwiftUI import SimplenoteEndpoints // MARK: - SPAuthViewController // class SPAuthViewController: UIViewController { /// # Links to the StackView and the container view /// @IBOutlet private var stackViewTopConstraint: NSLayoutConstrain...
/content/code_sandbox/Simplenote/Classes/SPAuthViewController.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
6,471
```swift import UIKit // MARK: - TagViewCell // class TagViewCell: RoundedView { private var stackViewConstraints: EdgeConstraints! private let stackView: UIStackView = { let stackView = UIStackView() stackView.alignment = .center stackView.distribution = .fill stackView.axis ...
/content/code_sandbox/Simplenote/Classes/TagViewCell.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
1,030
```swift import Foundation // MARK: - UIPasteboard + Interlink // extension UIPasteboard { /// Copies the Internal Link (Markdown Reference) into the OS Pasteboard /// func copyInternalLink(to note: Note) { guard let link = note.markdownInternalLink else { return } str...
/content/code_sandbox/Simplenote/Classes/UIPasteboard+Note.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
126
```objective-c // // Tag.m // Simplenote // // Created by Michael Johnston on 10-04-19. // #import "Tag.h" //#import "NSArray+Utilities.h" #import "JSONKit+Simplenote.h" @interface Tag() - (void)updateRecipients; @end @implementation Tag @synthesize count; @dynamic index; @dynamic share; @dynamic name; - (void)a...
/content/code_sandbox/Simplenote/Classes/Tag.m
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
543
```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/SPTagHeaderView.xib
xml
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
1,147
```swift import Foundation import UIKit // MARK: - SPSortBar // class SPSortBar: UIView { /// Background Blur /// private let blurView = SPBlurEffectView.navigationBarBlurView() /// Divider: Top separator /// @IBOutlet private(set) var dividerView: UIView! /// Divider: We're aiming at a ...
/content/code_sandbox/Simplenote/Classes/SPSortBar.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
676
```objective-c #import "SPNavigationController.h" #import "Simplenote-Swift.h" static const NSInteger SPNavigationBarBackgroundPositionZ = -1000; @interface SPNavigationController () @property (nonatomic, strong) SPBlurEffectView *navigationBarBackground; @end @implementation SPNavigationController #pragma mark...
/content/code_sandbox/Simplenote/Classes/SPNavigationController.m
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
610
```swift import Foundation import SimplenoteSearch // MARK: - NotesListState // enum NotesListState: Equatable { case results case searching(query: SearchQuery) } // MARK: - NotesListState: Public API // extension NotesListState { /// Indicates if the NotesList should display Note Entities for the curren...
/content/code_sandbox/Simplenote/Classes/NotesListState.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
822
```swift import Foundation import UIKit // MARK: - SPRatingsPromptDelegate // @objc protocol SPRatingsPromptDelegate: AnyObject { func simplenoteWasLiked() func simplenoteWasDisliked() func displayReviewUI() func displayFeedbackUI() func dismissRatingsUI() } // MARK: - SPRatingsPromptView // class...
/content/code_sandbox/Simplenote/Classes/SPRatingsPromptView.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
1,212
```swift import Foundation // MARK: - NSMutableAttributedString Simplenote Methods // extension NSAttributedString { /// Returns the full range of the receiver. /// @objc var fullRange: NSRange { NSRange(location: .zero, length: length) } } ```
/content/code_sandbox/Simplenote/Classes/NSAttributedString+Simplenote.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
56
```swift import Foundation /// This extension contains several helper-additions to Cocoa NSURL class. /// extension NSURL { /// Returns *true* if the current URL is HTTP or HTTPS /// @objc func containsHttpScheme() -> Bool { return scheme == "http" || scheme == "https" } } ```
/content/code_sandbox/Simplenote/Classes/NSURL+Extensions.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
65
```swift import Foundation // MARK: - SPTextInputViewDelegate // @objc protocol SPTextInputViewDelegate: NSObjectProtocol { @objc optional func textInputDidBeginEditing(_ textInput: SPTextInputView) @objc optional func textInputDidEndEditing(_ textInput: SPTextInputView) @objc optional func ...
/content/code_sandbox/Simplenote/Classes/SPTextInputView.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
1,807
```swift import Foundation import UIKit import SimplenoteInterlinks // MARK: - UITextView State // extension UITextView { /// Indicates if the receiver contains selected text /// @objc var isTextSelected: Bool { return selectedRange.length > 0 } /// Indicates if there's an ongoing Und...
/content/code_sandbox/Simplenote/Classes/UITextView+Simplenote.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
1,271
```swift import UIKit // MARK: RoundedCrossButton // class RoundedCrossButton: RoundedButton { /// Style /// enum Style { case standard case blue case tagPill } var style: Style = .standard { didSet { refreshStyle() } } override init(fr...
/content/code_sandbox/Simplenote/Classes/RoundedCrossButton.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
438
```swift import Foundation import UIKit // MARK: - SPBlurEffectView: Reacts automatically to UserInterfaceStyle Changes // @objc class SPBlurEffectView: UIVisualEffectView { /// Blur's TintView /// private let tintView: UIView = { let output = UIView() output.autoresizingMask = [.flexibleW...
/content/code_sandbox/Simplenote/Classes/SPBlurEffectView.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
522
```swift import Foundation import UIKit // MARK: - SPSectionHeaderView // @objcMembers class SPSectionHeaderView: UITableViewHeaderFooterView { /// View Containing all of the subviews /// @IBOutlet private var containerView: UIView! /// Override `textLabel` to add `@IBOutlet` annotation /// @...
/content/code_sandbox/Simplenote/Classes/SPSectionHeaderView.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
483
```objective-c // // NSString+Bullets.h // Simplenote // // Created by Tom Witkin on 8/25/13. // #import <Foundation/Foundation.h> @interface NSString (Bullets) + (NSString *)spaceString; + (NSString *)tabString; + (NSString *)newLineString; - (BOOL)isNewlineString; - (BOOL)isTabString; @end ```
/content/code_sandbox/Simplenote/Classes/NSString+Bullets.h
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
84
```objective-c // // SPTextView.m // Simplenote // // Created by Tom Witkin on 7/19/13. // Created by Michael Johnston on 7/19/13. // #import "SPTextView.h" #import <CoreFoundation/CFStringTokenizer.h> #import "SPInteractiveTextStorage.h" #import "Simplenote-Swift.h" CGFloat const TextViewHighlightHorizontalPadd...
/content/code_sandbox/Simplenote/Classes/SPTextView.m
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
1,517
```swift import Foundation import UIKit // MARK: - UISearchBar Simplenote Methods // extension UISearchBar { /// Applies Simplenote's Style /// @objc func applySimplenoteStyle() { backgroundColor = .clear setBackgroundImage(UIImage(), for: .any, barMetrics: .default) setSearchF...
/content/code_sandbox/Simplenote/Classes/UISearchBar+Simplenote.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
250
```swift import Foundation // MARK: - KeychainManager // enum KeychainManager { /// Simplenote's Share Extension Token /// @KeychainItemWrapper(service: SimplenoteKeychain.extensionService, account: SimplenoteKeychain.extensionAccount) static var extensionToken: String? /// Simplenote's PIN Lock ...
/content/code_sandbox/Simplenote/Classes/KeychainManager.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
458
```swift import Foundation import UIKit // MARK: - UIAlertController's Simplenote Methods // extension UIViewController { /// View to use to attach another view controller /// enum AttachmentView { case below(UIView) case into(UIView) } /// Presents the receiver from the RootViewCo...
/content/code_sandbox/Simplenote/Classes/UIViewController+Simplenote.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
476
```objective-c #import "SPModalActivityIndicator.h" #import "Simplenote-Swift.h" @implementation SPModalActivityIndicator + (SPModalActivityIndicator *)showInWindow:(UIWindow *)window { SPModalActivityIndicator *alertView = [[SPModalActivityIndicator alloc] initWithFrame:CGRectZero]; UIActivityIndicato...
/content/code_sandbox/Simplenote/Classes/SPModalActivityIndicator.m
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
661
```objective-c @interface NSProcessInfo (Util) + (BOOL)isRunningTests; @end ```
/content/code_sandbox/Simplenote/Classes/NSProcessInfo+Util.h
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
19
```objective-c // // SPNotifications.h // Simplenote // // #import <Foundation/Foundation.h> #pragma mark ================================================================================ #pragma mark Notifications #pragma mark ================================================================================ extern...
/content/code_sandbox/Simplenote/Classes/SPNotifications.h
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
97
```swift import Foundation // MARK: - NoteContentHelper // enum NoteContentHelper { /// Returns structure of the content: range of title and body /// /// - Parameters: /// - content: note content /// static func structure(of content: String?) -> (title: Range<String.Index>?, body: Range<St...
/content/code_sandbox/Simplenote/Classes/NoteContentHelper.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
479
```objective-c // // Note.h // Simplenote // // Created by Michael Johnston on 01/07/08. // #import <Simperium/SPManagedObject.h> @interface Note : SPManagedObject { NSString *content; NSString *modificationDatePreview; NSString *creationDatePreview; NSString *titlePrevi...
/content/code_sandbox/Simplenote/Classes/Note.h
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
796
```objective-c #import "SPSidebarContainerViewController.h" #import "SPTracker.h" #import "Simplenote-Swift.h" #import <UIKit/UIKit.h> static const CGFloat SPDirectionalIdentity = 1; static const CGFloat SPDirectionalInverted = -1; static const CGFloat SPSidebarWidth ...
/content/code_sandbox/Simplenote/Classes/SPSidebarContainerViewController.m
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
3,368
```objective-c // // SPRatingsHelper.h // Simplenote // // Created by Jorge Leandro Perez on 3/19/15. // #import "WPRatingsHelper.h" @interface SPRatingsHelper : WPRatingsHelper - (void)reloadSettings; - (BOOL)shouldPromptForAppReview; @end ```
/content/code_sandbox/Simplenote/Classes/SPRatingsHelper.h
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
70
```swift import Foundation import CoreSpotlight import Intents import MobileCoreServices // MARK: - NSUserActivity Convenience Methods // extension NSUserActivity { /// Initializes a UserActivity Instance with a given Activity Type /// /// - Parameters: /// - type: The Activity Type we're represen...
/content/code_sandbox/Simplenote/Classes/NSUserActivity+Simplenote.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
210
```swift import Foundation import UIKit // MARK: - Settings: Theme // class SPThemeViewController: UITableViewController { private var themes: [Theme] { return Theme.allThemes } /// Selected SortMode /// @objc var selectedTheme: Theme = .light { didSet { updateSele...
/content/code_sandbox/Simplenote/Classes/SPThemeViewController.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
776
```swift import Foundation // MARK: - NSRegularExpression (Checklists) // extension NSRegularExpression { /// Matches Checklists at the beginning of each line /// @objc static let regexForChecklists: NSRegularExpression = { try! NSRegularExpression(pattern: "^\\s*(-[ \t]+\\[[xX\\s]?\\])", opti...
/content/code_sandbox/Simplenote/Classes/NSRegularExpression+Simplenote.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
299
```objective-c // // SPInteractivePushPopAnimationController.m // Simplenote // // Created by James Frost on 08/10/2015. // #import "SPInteractivePushPopAnimationController.h" #import "Simplenote-Swift.h" CGFloat const SPStandardInteractivePopGestureWidth = 20.0f; CGFloat const SPGestureTargetSwipeVelocity = 100....
/content/code_sandbox/Simplenote/Classes/SPInteractivePushPopAnimationController.m
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
1,973
```swift import Foundation import UIKit // MARK: - UIBlurEffect Simplenote Methods // extension UIBlurEffect { /// Returns a UIBlurEffect instance matching the System preferences /// @objc static var simplenoteBlurEffect: UIBlurEffect { return UIBlurEffect(style: simplenoteBlurStyle) } ...
/content/code_sandbox/Simplenote/Classes/UIBlurEffect+Simplenote.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
119
```swift import Foundation // MARK: - ContentSlice // struct ContentSlice: Equatable { /// Original content /// let content: String /// Sliced range /// let range: Range<String.Index> /// Ranges of matched words /// let matches: [Range<String.Index>] /// NSRange version of `m...
/content/code_sandbox/Simplenote/Classes/ContentSlice.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
180
```swift import Foundation // MARK: - NotesListFilter // enum NotesListFilter: Equatable { case everything case deleted case untagged case tag(name: String) } // MARK: - NotesListFilter: Public API // extension NotesListFilter { /// Initializes the ListFilter for a given `selectedTag` /// ...
/content/code_sandbox/Simplenote/Classes/NotesListFilter.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
310
```objective-c #import "Simperium+Simplenote.h" #import "Simplenote-Swift.h" @implementation Simperium (Simplenote) - (Preferences *)preferencesObject { SPBucket *bucket = [self bucketForName:NSStringFromClass([Preferences class])]; Preferences *preferences = [bucket objectForKey:kSimperiumPreferencesObjectK...
/content/code_sandbox/Simplenote/Classes/Simperium+Simplenote.m
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
109
```swift import Foundation // MARK: - Simplenote Methods // extension UIDevice { @objc static var isPad: Bool { UIDevice.current.userInterfaceIdiom == .pad } } ```
/content/code_sandbox/Simplenote/Classes/UIDevice+Simplenote.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
45
```swift import UIKit // MARK: - ActivityIndicatorButton // class ActivityIndicatorButton: UIButton { private lazy var activityIndicator = UIActivityIndicatorView() /// In Progress /// var inProgress: Bool = false { didSet { if inProgress { titleLabel?.alpha = UIKi...
/content/code_sandbox/Simplenote/Classes/ActivityIndicatorButton.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
248
```xml <?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15705" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <device id="retina6_1" orienta...
/content/code_sandbox/Simplenote/Classes/SPTagTableViewCell.xib
xml
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
2,038
```objective-c // // NSManagedObjectContext+CoreDataExtensions.h // Castaway // // Created by Tom Witkin on 4/5/13. // #import <CoreData/CoreData.h> @interface NSManagedObjectContext (CoreDataExtensions) - (NSArray *)fetchAllObjectsForEntityName:(NSString *)entityName; - (NSArray *)fetchObjectsForEntityName:(NSS...
/content/code_sandbox/Simplenote/Classes/NSManagedObjectContext+CoreDataExtensions.h
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
207
```objective-c // // Tag.h // Simplenote // // Created by Michael Johnston on 10-04-19. // #import <Simperium/SPManagedObject.h> @interface Tag : SPManagedObject { NSString *name; NSMutableArray *recipients; int count; NSNumber *index; NSString *share; } @property (nonatomic, retain) NSString *name; @prop...
/content/code_sandbox/Simplenote/Classes/Tag.h
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
172
```objective-c // // WPAuthHandler.h // Simplenote // Handles oauth authentication with WordPress.com // #import <Simperium/Simperium.h> @interface WPAuthHandler : NSObject + (BOOL)isWPAuthenticationUrl:(NSURL*)url; + (void)presentWordPressSSOFromViewController:(UIViewController *)presenter; + (SPUser *)authorizeS...
/content/code_sandbox/Simplenote/Classes/WPAuthHandler.h
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
99
```swift import Foundation // MARK: - TagTextFieldInputValidator // struct TagTextFieldInputValidator { private var disallowedCharacterSet: CharacterSet { get { var whitespaceCharset = CharacterSet.whitespacesAndNewlines whitespaceCharset.insert(",") return whitespaceCha...
/content/code_sandbox/Simplenote/Classes/TagTextFieldInputValidator.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
463
```xml <?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15705" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <device id="retina6_1" orienta...
/content/code_sandbox/Simplenote/Classes/SPSectionHeaderView.xib
xml
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
1,083
```swift import Foundation import LocalAuthentication // MARK: - BiometricAuthentication // class BiometricAuthentication { /// Biometry /// enum Biometry { case touchID case faceID } /// Available biometry type or nil if biometry is not supported or user disabled it in settings ...
/content/code_sandbox/Simplenote/Classes/BiometricAuthentication.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
297
```swift import Foundation // MARK: - FileManager // extension FileManager { /// User's Document Directory /// var documentsURL: URL { guard let url = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first else { fatalError("Cannot Access User Documents Direc...
/content/code_sandbox/Simplenote/Classes/FileManager+Simplenote.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
303
```swift import Foundation // MARK: - Simperium + Buckets // extension Simperium { var allBuckets: [SPBucket] { [ accountBucket, notesBucket, preferencesBucket, settingsBucket, tagsBucket ] } /// Bucket: Account /// - Note: Since it's **dynamic** (InMemory JSON Storage), we don't really have ...
/content/code_sandbox/Simplenote/Classes/Simperium+Simplenote.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
357
```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/SPDiagnosticsViewController.xib
xml
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
1,197
```swift import Foundation // MARK: - SortMode List Methods // extension NSSortDescriptor { /// Returns a NSSortDescriptor, to be applied over Note collections, so that the resulting collection reflects the specified `SortMode` /// static func descriptorForNotes(sortMode: SortMode) -> NSSortDescriptor { ...
/content/code_sandbox/Simplenote/Classes/NSSortDescriptor+Simplenote.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
439
```swift import Foundation // MARK: - PassthruView: Doesn't capture tap events performed over itself! // class PassthruView: UIView { /// Callback is invoked when interacted with this view and not with subviews /// var onInteraction: (() -> Void)? override func hitTest(_ point: CGPoint, with event: U...
/content/code_sandbox/Simplenote/Classes/PassthruView.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
116
```swift import Foundation // MARK: - UIBarButtonItem + Appearance // extension UIBarButtonItem { /// Applies the Simplenote Appearance to `UIBarButtonItem` instances /// class func refreshAppearance() { let titleAttributes: [NSAttributedString.Key: Any] = [ .font: UIFont.preferredFont...
/content/code_sandbox/Simplenote/Classes/UIBarButtonItem+Appearance.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
92
```objective-c #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSString (Condensing) /// Returns a version of the receiver with all of its newlines replaced with spaces. /// /// - Note: Multiple consecutive newlines will be replaced by a *single* space /// - (NSString *)stringByReplacingNewlin...
/content/code_sandbox/Simplenote/Classes/NSString+Condensing.h
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
75
```objective-c // // SPMarkdownParser.h // Simplenote // // Created by James Frost on 01/10/2015. // #import <Foundation/Foundation.h> /** * @class SPMarkdownParser * @brief This is a simple wrapper around the 'hoedown' Markdown parser, * which produces HTML from a Markdown input strin...
/content/code_sandbox/Simplenote/Classes/SPMarkdownParser.h
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
110
```objective-c #import "SPTracker.h" #import "SPAutomatticTracker.h" #import "SPAppDelegate.h" #import "Simperium+Simplenote.h" @implementation SPTracker #pragma mark - Metadata + (void)refreshMetadataWithEmail:(NSString *)email { [[SPAutomatticTracker sharedInstance] refreshMetadataWithEmail:email]; } + (voi...
/content/code_sandbox/Simplenote/Classes/SPTracker.m
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
2,198
```swift import Foundation import UIKit // MARK: - SPTagTableViewCell // @objcMembers class SPTagTableViewCell: UITableViewCell { /// Left UIImageView /// @IBOutlet private var leftImageView: UIImageView! /// Left UIImageView's Height Constraint /// @IBOutlet private var leftImageHeightConstr...
/content/code_sandbox/Simplenote/Classes/SPTagTableViewCell.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
1,097
```swift import Foundation // MARK: - UINavigationBar Simplenote Methods // extension UINavigationBar { /// Applies Simplenote's **LIGHT** Style /// @objc func applyLightStyle() { let bcColor = UIColor.white backgroundColor = bcColor barTintColor = bcColor let backgrou...
/content/code_sandbox/Simplenote/Classes/UINavigationBar+Simplenote.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
104
```objective-c // // JSONKit+Simplenote.h // Simplenote-iOS // // Created by Jorge Leandro Perez on 1/4/14. // @interface NSArray (JSONKit) - (NSString *)JSONString; @end @interface NSDictionary (JSONKit) - (NSString *)JSONString; @end @interface NSString (JSONKit) - (id)objectFromJSONString; @end @interface N...
/content/code_sandbox/Simplenote/Classes/JSONKit+Simplenote.h
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
101
```objective-c // // UITextView+Simplenote.h // Simplenote // // Created by Jorge Leandro Perez on 3/25/15. // #import <Foundation/Foundation.h> @interface UITextView (Simplenote) - (BOOL)applyAutoBulletsWithReplacementText:(NSString *)replacementText replacementRange:(NSRange)replacementRange; - (NSRange)visible...
/content/code_sandbox/Simplenote/Classes/UITextView+Simplenote.h
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
85
```swift import Foundation import UIKit // MARK: - UIView: Image Representation Helpers // extension UIView { /// Returns a UIImage containing a rastrerized version of the receiver. /// @objc func imageRepresentation() -> UIImage { let renderer = UIGraphicsImageRenderer(bounds: bounds) ...
/content/code_sandbox/Simplenote/Classes/UIView+ImageRepresentation.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
145
```swift import Foundation import QuartzCore // MARK: - ViewSpinner: Spin a view // final class ViewSpinner { private let view: UIView private var displayLink: CADisplayLink? private var angle: Double = 0.0 private var velocity: Double = 0.0 /// Callback is invoked once max velocity is reached ...
/content/code_sandbox/Simplenote/Classes/ViewSpinner.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
572
```objective-c // // SPTextField.h // Simplenote // // Created by Tom Witkin on 10/13/13. // #import <UIKit/UIKit.h> @interface SPTextField : UITextField @property (nonatomic, assign) NSDirectionalEdgeInsets rightViewInsets; @property (nonatomic, strong) UIColor *placeholdTextColor; @end ```
/content/code_sandbox/Simplenote/Classes/SPTextField.h
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
71
```objective-c #import "NSProcessInfo+Util.h" @implementation NSProcessInfo (Util) + (BOOL)isRunningTests { NSDictionary *environment = [[NSProcessInfo processInfo] environment]; NSString *injectBundle = environment[@"XCInjectBundle"]; BOOL result = [[injectBundle pathExtension] isEqualToString:@"xctest"]...
/content/code_sandbox/Simplenote/Classes/NSProcessInfo+Util.m
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
86
```objective-c // // SPCollaboratorCompletionCell.h // Simplenote // // Created by Tom Witkin on 7/27/13. // #import "SPEntryListCell.h" @interface SPEntryListAutoCompleteCell : SPEntryListCell @end ```
/content/code_sandbox/Simplenote/Classes/SPEntryListAutoCompleteCell.h
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
59
```swift import Foundation // MARK: - NSURL + Interlink // extension NSURL { /// Indicates if the receiver' has the Simplenote Scheme /// @objc var isSimplenoteURL: Bool { scheme?.lowercased() == SimplenoteConstants.simplenoteScheme } /// Indicates if the receiver is a reference to a ...
/content/code_sandbox/Simplenote/Classes/NSURL+Links.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
340
```swift import Foundation import UIKit // MARK: - SPEditorTapRecognizerDelegate // Since the dawn of time, UITextView itself was set as (our own) TapGestureRecognizer delegate. // As per iOS 14, the new (superclass) implementation is not allowing our Tap recognizer to work simultaneously with its (internal) // rec...
/content/code_sandbox/Simplenote/Classes/SPEditorTapRecognizerDelegate.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
403
```objective-c // // SPSimperiumManager.m // Simplenote // // Created by Tom Witkin on 7/26/13. // #import "SPObjectManager.h" #import "NSManagedObjectContext+CoreDataExtensions.h" #import <Simperium/Simperium.h> #import "SPAppDelegate.h" #import "Note.h" #import "Tag.h" #import "NSString+Metadata.h" #import "Simpl...
/content/code_sandbox/Simplenote/Classes/SPObjectManager.m
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
1,916
```objective-c // // SPDebugViewController.m // Simplenote // // Created by Jorge Leandro Perez on 6/3/14. // #import "SPDebugViewController.h" #import "SPAppDelegate.h" #import "Note.h" #import "Simplenote-Swift.h" #import <Simperium/Simperium.h> #import <Simperium/SPBucket.h> static NSInteger const SPDebugSect...
/content/code_sandbox/Simplenote/Classes/SPDebugViewController.m
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
944
```swift import Foundation import UIKit // MARK: - UIView's Simplenote Methods // extension UIView { /// Indicates if the receiver has the horizontal compact trait /// @objc func isHorizontallyCompact() -> Bool { return traitCollection.horizontalSizeClass == .compact } /// Adjusts the...
/content/code_sandbox/Simplenote/Classes/UIView+Simplenote.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
578
```swift import Foundation import UIKit // MARK: - SwitchTableViewCell // class SwitchTableViewCell: UITableViewCell { /// Accessory View /// private(set) lazy var switchControl = UISwitch() /// Accessibility Hint to be applied over the control, whenever it's On /// var enabledAccessibilityHi...
/content/code_sandbox/Simplenote/Classes/SwitchTableViewCell.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
657
```objective-c @interface NSString (Metadata) // Removes pin and tags - (NSArray *)stringArray; @end ```
/content/code_sandbox/Simplenote/Classes/NSString+Metadata.h
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
22
```objective-c // // SPTextField.m // Simplenote // // Created by Tom Witkin on 10/13/13. // #import "SPTextField.h" #import "Simplenote-Swift.h" @implementation SPTextField - (void)drawPlaceholderInRect:(CGRect)rect { if (self.placeholdTextColor == nil || self.placeholder.length == 0) { [super dr...
/content/code_sandbox/Simplenote/Classes/SPTextField.m
objective-c
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
461
```swift import Foundation // MARK: - PinLockVerifyControllerDelegate // protocol PinLockVerifyControllerDelegate: AnyObject { func pinLockVerifyControllerDidComplete(_ controller: PinLockVerifyController) } final class PinLockVerifyController: PinLockBaseController, PinLockController { var isCancellable: Bo...
/content/code_sandbox/Simplenote/Classes/PinLock/PinLockVerifyController.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
558
```swift import Foundation // MARK: - PinLockBaseController: base functionality for pin lock controller // class PinLockBaseController { /// Current configuration /// var configuration = PinLockControllerConfiguration(title: "", message: nil) /// Configuration observer /// var configurationObs...
/content/code_sandbox/Simplenote/Classes/PinLock/PinLockBaseController.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
310
```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/PinLock/PinLockViewController.xib
xml
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
4,364
```swift import Foundation // MARK: - PinLockRemoveControllerDelegate // protocol PinLockRemoveControllerDelegate: AnyObject { func pinLockRemoveControllerDidComplete(_ controller: PinLockRemoveController) func pinLockRemoveControllerDidCancel(_ controller: PinLockRemoveController) } // MARK: - PinLockRemoveC...
/content/code_sandbox/Simplenote/Classes/PinLock/PinLockRemoveController.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
315
```swift import Foundation import CoreSpotlight import UIKit import SimplenoteSearch // MARK: - Components Initialization // extension SPNoteListViewController { /// Sets up the Feedback Generator! /// @objc func configureImpactGenerator() { feedbackGenerator = UIImpactFeedbackGenerator() ...
/content/code_sandbox/Simplenote/Classes/SPNoteListViewController+Extensions.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
8,402
```swift import Foundation // MARK: - PinLockSetupControllerDelegate // protocol PinLockSetupControllerDelegate: AnyObject { func pinLockSetupControllerDidComplete(_ controller: PinLockSetupController) func pinLockSetupControllerDidCancel(_ controller: PinLockSetupController) } // MARK: - PinLockSetupControll...
/content/code_sandbox/Simplenote/Classes/PinLock/PinLockSetupController.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
522
```swift import Foundation // MARK: - PinLockControllerConfiguration // struct PinLockControllerConfiguration: Equatable { /// PinLock screen title let title: String /// PinLock screen message /// let message: String? } // MARK: - PinLockController // protocol PinLockController: AnyObject { /...
/content/code_sandbox/Simplenote/Classes/PinLock/PinLockController.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
239
```swift import UIKit // MARK: - PinLockViewController // class PinLockViewController: UIViewController { override var preferredStatusBarStyle: UIStatusBarStyle { return .lightContent } @IBOutlet private weak var titleLabel: UILabel! @IBOutlet private weak var messageLabel: UILabel! @IBOut...
/content/code_sandbox/Simplenote/Classes/PinLock/PinLockViewController.swift
swift
2016-08-11T15:55:22
2024-08-14T02:42:22
simplenote-ios
Automattic/simplenote-ios
2,038
1,654