Mobile App Developer & UI/UX Designer. Twitter: twitter.com/Hejazi
View GitHub Profile

View Catalyst-ScaleFactor.swiftEnjoy both full featured Asana Online and Asana Offline in one application! With Notifications and Touch Bar support. AppSana Suite provides a native Asana experience for macOS fully compatible with High Sierra. One and only native Asana application on Mac AppStore. It can work offline, notificati.
| overridefuncviewDidAppear(_animated: Bool) { |
| view.window?.scaleFactor=1.0// Default value is 0.77 |
| } |
| extensionUIWindow { |
| var scaleFactor: CGFloat { |
| get { |
| Dynamic.NSApplication.sharedApplication |
| .windows.firstObject.contentView |
| .subviews.firstObject.scaleFactor??1.0 |
Asana Mac App Github Tutorial
View Catalyst-NSOpenPanel.swift| // macOS App |
| let panel =NSOpenPanel() |
| panel.beginSheetModal(for: view.window!, completionHandler: { response in |
| iflet url: URL = panel.urls.first { |
| print('url: ', url) |
| } |
| }) |
| // Mac Catalyst (with Dynamic) |
| let panel = Dynamic.NSOpenPanel() |
View Catalyst-ToggleFullScreen.swiftAsana Download Mac

| // macOS App |
| NSApplication.shared |
| .windows.first? |
| .toggleFullScreen(nil) |
| // Mac Catalyst (with Dynamic) |
| Dynamic.NSApplication.sharedApplication |
| .windows.firstObject |
| .toggleFullScreen(nil) |
View Catalyst-NSWindow.swift| extensionUIWindow { |
| var nsWindow: NSObject? { |
| Dynamic.NSApplication.sharedApplication.delegate.hostWindowForUIWindow(self) |
| } |
| } |
Asana Android App
View CopyAsanaTasks.phpAsana Mac Client
| function asanaRequest($methodPath, $httpMethod = 'GET', $body = null) |
| { |
| $apiKey = 'ASANA_API_KEY_HERE'; /// Get it from http://app.asana.com/-/account_api |
| $url = 'https://app.asana.com/api/1.0/$methodPath'; |
| $ch = curl_init(); |
| curl_setopt($ch, CURLOPT_URL, $url); |
| curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ) ; |
| curl_setopt($ch, CURLOPT_USERPWD, $apiKey); |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |