- Use HTML tags to define the table to get the best layout result
- Use either backticks (```) or the HTML
pre
element with attributelang
- Keep a blank line before and after a code block for correct formatting and syntax highlighting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension Array where Element == Any { | |
/** | |
Variadic parameters are converted to an array while inside a function. Forwarding this array to another function which accepts variadic parameters will result in a nested array | |
Use this function to remove nesting arrays and remove nil values | |
``` | |
var anyArray: [Any] = [[["Hello", nil]] | |
var result = anyArray.flatCompactMapForVariadicParameters() // result is ["Hello"] | |
``` | |
*/ | |
func flatCompactMapForVariadicParameters() -> [Any] { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Swift Package Dependencies | |
on: | |
schedule: | |
- cron: '0 8 * * 1' # every monday AM 8:00 | |
jobs: | |
spm-dep-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SAPFoundation | |
// assuming a MDM/UEM provider pushed the following managed iOS configuration to device | |
// <plist version="1.0"><dict><key>UserEmailAddress</key><string>[email protected]</string></dict></plist> | |
// get managed iOS configuration as dictionary | |
let managedConfigDic = ManagedConfigurationProvider().provideConfiguration().configuration | |
// access entry of managed iOS configuration | |
print("Value \(managedConfigDic["UserEmailAddress"]) equals '[email protected]' according to plist pushed by MDM/UEM provider") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Release dir path | |
OUTPUT_DIR_PATH="${PROJECT_DIR}/XCFramework" | |
function archivePathSimulator { | |
local DIR=${OUTPUT_DIR_PATH}/archives/"${1}-SIMULATOR" | |
echo "${DIR}" | |
} | |
function archivePathDevice { | |
local DIR=${OUTPUT_DIR_PATH}/archives/"${1}-DEVICE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SAPFiori | |
class ProductObjectTableViewCell: FUIObjectTableViewCell { | |
required init() { | |
super.init() | |
self.detailImage = UIImage(named: "laptop") | |
self.headlineText = "Notebook Basic 15" | |
self.subheadlineText = "Notebooks" | |
self.footnoteText = "In Stock" | |
self.accessoryType = .detailDisclosureButton |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "nodes": [ | |
{ "id": 1, "name": "Onboarding", "n": 1, "grp": 1 }, | |
{ "id": 2, "name": "Homepage", "n": 32, "grp": 2 }, | |
{ "id": 3, "name": "Account List View", "n": 5,"grp": 3 }, | |
{ "id": 4, "name": "Account Detail View", "n": 5, "grp": 3 }, | |
{ "id": 5, "name": "Opportunity List View", "grp": 4 }, | |
{ "id": 6, "name": "Opportunity Detail View", "grp": 4 }, | |
{ "id": 7, "name": "Lead List View", "grp": 5 }, | |
{ "id": 8, "name": "Lead Detail View", "grp": 5 }, | |
{ "id": 9, "name": "Create Account", "grp": 3 }, |
NewerOlder