Update: There is a more secure version available. Details
<?php
$plaintext = 'My secret message 1234';| git diff -p \ | |
| | grep -E '^(diff|old mode|new mode)' \ | |
| | sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' \ | |
| | git apply |
| let styles: [UIFont.TextStyle] = [ | |
| // iOS 17 | |
| .extraLargeTitle, .extraLargeTitle2, | |
| // iOS 11 | |
| .largeTitle, | |
| // iOS 9 | |
| .title1, .title2, .title3, .callout, | |
| // iOS 7 | |
| .headline, .subheadline, .body, .footnote, .caption1, .caption2, | |
| ] |
Update: There is a more secure version available. Details
<?php
$plaintext = 'My secret message 1234';| //: [Previous](@previous) | |
| import SwiftUI | |
| import Combine | |
| import PlaygroundSupport | |
| class Context: ObservableObject { | |
| @Published var selectedItems: Set<String> | |
| @Published var items: Array<String> | |
| import SwiftUI | |
| extension Calendar { | |
| func generateDates( | |
| inside interval: DateInterval, | |
| matching components: DateComponents | |
| ) -> [Date] { | |
| var dates: [Date] = [] | |
| dates.append(interval.start) |
| // Documentation comments are copied from the official documentation for iOS. | |
| import SwiftUI | |
| #if os(macOS) | |
| /// Reimplemenation of [EditMode](https://developer.apple.com/documentation/swiftui/editmode) for macOS. | |
| public enum EditMode { | |
| /// The user can edit the view content. |
| import SwiftUI | |
| let symbols = [ | |
| "pencil", | |
| "trash", | |
| "folder", | |
| "camera", | |
| "photo", | |
| "clock", | |
| "arrow.right.circle.fill", |
| struct ContentView: View { | |
| var body: some View { | |
| let names = [ | |
| ["appstore.app.dashed", "buildings.3d", "emoji.chicken.face"], | |
| ["person.text.rectangle.and.nfc", "secure.element", "laugh.bubble.tapback.2.he"], | |
| ["apple.news", "apple.podcasts.square.stack", "apple.slice"], | |
| ] | |
| VStack(spacing: 20) { | |
| Grid(horizontalSpacing: 20, verticalSpacing: 20) { | |
| ForEach(names, id: \.self) { nameRow in |