Documentation:
- https://developer.apple.com/documentation/security/keychain_services
- https://developer.apple.com/documentation/security/errsecduplicateitem
Examples:
- class_attributes.swiftlists attributes by classes
Documentation:
Examples:
class_attributes.swift lists attributes by classesExamples how encode/decode RFC 3339 (ISO 8601) dates in JSON by JSONEncoder/JSONDecoder.
Links:
| // | |
| // Models.swift | |
| // Vitaly Berg | |
| // | |
| // Created by Vitaly Berg on 7/21/21. | |
| // Copyright © 2021 Vitaly Berg. All rights reserved. | |
| // | |
| import Foundation | |
| import UserNotifications | 
| // | |
| // KeyboardObserver.swift | |
| // Vitaly Berg | |
| // | |
| // Created by Vitaly Berg on 7/21/21. | |
| // Copyright © 2021 Vitaly Berg. All rights reserved. | |
| // | |
| import UIKit | 
| import UIKit | |
| @main | |
| class AppDelegate: UIResponder, UIApplicationDelegate { | |
| var window: UIWindow? | |
| private func setupWindow() { | |
| window = UIWindow(frame: UIScreen.main.bounds) | |
| window?.makeKeyAndVisible() | |
| } | 
| Render 1 | Render 2 | State Preserved? | 
|---|---|---|
| <>...</> | <>{[...]}</> | yes (in any level) | 
| <><>...</></> | <>...</> | no | 
| [...] | [[...]] | no | 
| [<>...</>]* | [...] | no | 
| [<>...</>]* | <>...</> | no | 
| [<>...</>]* | <>[...]</> | no | 
| [<>...</>]* | [[...]] | yes | 
| [<>...>]* | <><>...>> | yes | 
| language: objective-c | |
| osx_image: xcode7.2 | |
| xcode_sdk: iphonesimulator9.2 | |
| env: | |
| global: | |
| - LANG=en_US.UTF-8 | |
| - WORKSPACE="YOUR_APP_WORKSPACE/YOUR_APP_PROJECT.xcworkspace" | |
| - SCHEME="YOUR_BUILDSCHEME" | |
| - APP_NAME="YOUR_APP_NAME" | 
| MAIN_GOPATH=/usr/local/Cellar/go/1.2/workspace | |
| export GOPATH=$MAIN_GOPATH | |
| MAIN_PATH=$PATH:$GOPATH/bin | |
| export PATH=$MAIN_PATH | |
| # goenv functions | |
| activate(){ | |
| export GOPATH="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)" | |
| export OLDPS1=$PS1 | |
| export PS1="(go:$(basename $GOPATH)) $PS1" | 
| --- | |
| language: objective-c | |
| before_script: | |
| - ./scripts/travis/add-key.sh | |
| after_script: | |
| - ./scripts/travis/remove-key.sh | |
| after_success: | |
| - ./scripts/travis/testflight.sh | |
| env: | |
| global: | 
Generate the list yourself:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep UI_APPEARANCE_SELECTOR ./*     | \
  sed 's/NS_AVAILABLE_IOS(.*)//g'     | \
  sed 's/NS_DEPRECATED_IOS(.*)//g'    | \
  sed 's/API_AVAILABLE(.*)//g'        | \
  sed 's/API_UNAVAILABLE(.*)//g'      | \
 sed 's/UI_APPEARANCE_SELECTOR//g' | \