WWDC 2006 2007 2008 2009 2010 2011 2012 2013 2014
This file contains hidden or 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
| // | |
| // LiquidGlassEffectContainer.swift | |
| // | |
| import SwiftUI | |
| struct LiquidGlassEffectContainer: View { | |
| var body: some View { | |
| ZStack { | |
| Image("bgImg") |
This file contains hidden or 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
| /** | |
| -NOTE: | |
| After AVPlayerItem faces an error you can create CoreMedia Error from the underlying Error inside AVPlayerItem error. | |
| With the `CoreMediaError` enum, you can convert errors to more readable ones,handle AVPlayerItem Common errors, | |
| and show the proper messages to your users. | |
| **/ | |
| public enum CoreMediaError:Error { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| [ | |
| { code: 'AD', label: 'Andorra', phone: '376', phoneLength: 6}, | |
| { code: 'AE', label: 'United Arab Emirates', phone: '971', phoneLength: 9}, | |
| { code: 'AF', label: 'Afghanistan', phone: '93', phoneLength: 9}, | |
| { code: 'AG', label: 'Antigua and Barbuda', phone: '1-268', phoneLength: 10}, | |
| { code: 'AI', label: 'Anguilla', phone: '1-264', phoneLength: 10}, | |
| { code: 'AL', label: 'Albania', phone: '355', phoneLength: 9}, | |
| { code: 'AM', label: 'Armenia', phone: '374', phoneLength: 6}, | |
| { code: 'AO', label: 'Angola', phone: '244', phoneLength: 9}, | |
| { code: 'AQ', label: 'Antarctica', phone: '672', phoneLength: 6}, |
This file contains hidden or 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
| // | |
| // SnapCarousel.swift | |
| // prototype5 | |
| // | |
| // Created by xtabbas on 5/7/20. | |
| // Copyright © 2020 xtadevs. All rights reserved. | |
| // | |
| import SwiftUI |
This file contains hidden or 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
| public class UserAgent { | |
| public static let userAgent: String? = { | |
| guard let info = Bundle.main.infoDictionary, | |
| let appNameRaw = info["CFBundleDisplayName"] ?? info[kCFBundleIdentifierKey as String], | |
| let appVersionRaw = info[kCFBundleVersionKey as String], | |
| let appName = appNameRaw as? String, | |
| let appVersion = appVersionRaw as? String | |
| else { return nil } | |
| #if canImport(UIKit) |
Foundation offers a Thread class, internally based on pthread, that can be used to create new threads and execute closures.
// Detaches a new thread and uses the specified selector as the thread entry point.
Thread.detachNewThreadSelector(selector: Selector>, toTarget: Any, with: Any)
// Subclass
class MyThread: Thread {
This file contains hidden or 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
| [ | |
| {"url": "https://devstreaming-cdn.apple.com/videos/wwdc/2018/236mwbxbxjfsvns4jan/236/236_hd_avspeechsynthesizer_making_ios_talk.mp4?dl=1", "title": "AVSpeechSynthesizer: Making iOS Talk", "summary": "Speech can enhance the audio experience of your app, whether you are generating spoken feedback for accessibility, or providing critical information beyond simple alerts or notifications. AVSpeechSynthesizer produces synthesized speech from text and allows you to control and monitor the progress of ongoing speech. Learn the ins and outs of AVSpeechSynthesizer and how to add computer-generated speech output to your app."}, | |
| {"url": "https://devstreaming-cdn.apple.com/videos/wwdc/2018/405bjty1j94taqv8ii/405/405_hd_measuring_performance_using_logging.mp4?dl=1", "title": "Measuring Performance Using Logging", "summary": "Learn how to use signposts and logging to measure performance. Understand how the Points of Interest instrument can be used to examine logged data. Get an introduction into creating and using custo |
NewerOlder