- 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
{ "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 }, |
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
# 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 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
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
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
// ... | |
#if DEBUG | |
struct ObjectMessageView_Previews: PreviewProvider { | |
static var singleButtonPreview: some View { | |
ObjectMessageView(model: UIModelDataContent(text: "text1", list: nil, form: nil, picture: nil, video: nil, | |
header: UIModelDataHeader(title: UIModelDataValue(value: "A very long title which is maybe even too long but who knows :) who can really tell? I don't know. That is a real interesting question. What do you think?", dataType: UIModelData.ValueType.text.rawValue, rawValue: nil, | |
label: nil, | |
valueState: nil), | |
subtitle: UIModelDataValue(value: "A very long subtitle which is maybe even too long but who knows :) who can really tell |
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
class MySchemeHandler: NSObject, WKURLSchemeHandler { | |
func webView(_ webView: WKWebView, start urlSchemeTask: WKURLSchemeTask) { | |
print("started for \(urlSchemeTask.request.url?.absoluteString)") | |
guard let url = urlSchemeTask.request.url else { return } | |
var components = URLComponents(url: url, resolvingAgainstBaseURL: true) | |
components?.scheme = "https" | |
guard let finalUrl = components?.url else { return } | |
print("proxy to \(finalUrl.absoluteString)") | |
let task = URLSession.shared.dataTask(with: URLRequest(url: finalUrl)) { receivedData, urlresponse, error in | |
guard let response = urlresponse, let data = receivedData else { urlSchemeTask.didFinish(); return } |
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
platform :ios, '14.0' | |
target 'MSAdaptiveCardExample' do | |
use_frameworks! | |
pod 'AdaptiveCards' | |
end |
OlderNewer