ãµã³ãã«ã³ã¼ã https://github.com/SatoTakeshiX/first-step-swift-concurrency/tree/main/try-concurrency.playground 対å¿ãããµã³ãã«ã³ã¼ãã«ã¯ãã¼ã¸åãè¨è¼ãã¾ãã æ¤è¨¼ç°å¢ Xcode 13.2.1 Swift 5.5 ãã¼ã¿ç«¶å ãã«ãã¹ã¬ããããã°ã©ãã³ã°ã«ããã¦ãéè¦ãªåé¡ã¯ãã¼ã¿ç«¶åï¼data race)ãããã«é²ããã§ããè¤æ°ã®ã¹ã¬ããããä¸ã¤ã®ãã¼ã¿ã«ã¢ã¯ã»ã¹ããå ´åãããã¹ã¬ããããã¼ã¿ãæ´æ°ããã¨ãã¼ã¿ãä¸æ´åãèµ·ããã¦ãã¾ãå¯è½æ§ãããã¾ãããããã¯ãé常ã«é£ãããã£ãããªãã°ãã«ãªããã¨ãå¤ãã§ãã ãã¼ã¿ç«¶åãã©ããããã®ããã³ã¼ãã§è§£èª¬ãã¾ãã ä¾ãã°ã²ã¼ã ã®ç¹æ°ã管çããScoreã¨ããåãã¯ã©ã¹ã§å®ç¾©ãã¾ãã // Page: 3-1-data-race class
This post is for Day 23 of Merpay Advent Calendar 2022, brought to you by takeshi from Merpay iOS Team. Introduction Since Swift 5.5 was released in 2021, we are able to use Swift Concurrency. Swift Concurrency prevents your code from data races and provides a simple way to implement async code. It is big news for iOS developers. Merpay iOS team attempts to introduce Swift Concurrency into our cod
ã¯ããã« Swiftã®ããã¥ã¡ã³ããOSSè¦ãã¨Genericsããã使ããã¦ã¾ãããGenericsã使ãããé¢æ°ãåãç解ãããæè»ã§æ±ç¨çãªã³ã¼ãã£ã³ã°ããã¦ããããã«ãGenericsã¯å¦ãã§ããã¹ãã ã¨æãã¾ããä»åã¯Genericsã«ã¤ãã¦å¦ãã§ããããã¨æãã¾ãã Generics in Swift, Part 2ã®Why generics?ã§ã¯ãGenericsã使ãçç±ã¨ãã¦ä»¥ä¸ã®3ã¤ãæãããã¦ãã¾ãã Type safety Less code duplication Library flexibility Genericsãç¨ãããã¨ã§æå®ããè¦ä»¶ããããã¯ä»»æã®æ§ã ãªåãæ±ããã¨ãã§ããã®ã§ãæè»ã§åå©ç¨å¯è½ãªåãé¢æ°ãå®ç¾©ãããã¨ãã§ãã¾ãã ArrayãDictionaryãGenericsãªCollectionã§ããï¼è©³ããã¯Swiftãããã³ã¼ãã£ã³ã°ãå¦
// observeã®çµæãæ ¼ç´ private var keyValueObservations = [NSKeyValueObservation]() // UIScrollViewã®ç§»åãæç¥ãã¦closureãå®è¡ãã private func addKVO(scrollView: UIScrollView, _ closure: @escaping ()->Void) { let keyValueObservation = scrollView.observe(\.contentOffset, options: [.new, .old]) { _, change in if change.newValue == nil { return } closure() // ãã¼ãã¼ããæ¶ãã¨ãã»ã»ã» } keyValueObservations.append(keyValueObser
Getting Started with Swift Compiler Development August 23, 2017 Over the next few months, I'll be writing a guide to each section of the Swift compiler source code: swift/lib/Driver, swift/lib/Frontend, swift/lib/Parse, and so on. First, here's how I set up a workspace for building and making patches to the Swift compiler. Being able to modify, experiment with, and attach a debugger to my own copy
About the content This talk was delivered live in June 2016 at mDevCamp. The video was transcribed by Realm and is published here with the permission of the conference organizers. MVVMãMVCãVIPERãªã©å¤æ§ãªã¢ã¼ããã¯ãã£ãã¶ã¤ã³ãããã¾ãããã©ããä¸çªè¯ãã®ã§ããããããã®è¬æ¼ã§ã¯è¯ãiOSã¢ããªã¢ã¼ããã¯ãã£ãæ§æããããã«ã©ã®ãããªè¦ç´ ãå¿ è¦ãªã®ããè¦ã¦ããã¾ãã å°å ¥(0:00) New York Timesã§åãã¦ããKrzysztof ZabÅockiã§ãããªã¼ãã³ã½ã¼ã¹ã¾ãã¯ç§ãä½ã£ãFoldifyã¢ããªãéãã¦ç§ã®ååãèãããã¨ãããæ¹ãããããããã¾ãããããããããObjectiv
Xcode 9 betaããªãªã¼ã¹ãããSwift 4ï¼ã¨Swift 3.2ï¼ã®è¶³é³ãèããã¦ããããã®ã¿ã¤ãã³ã°ã§ãä»ããSwiftãå¦ã¼ãã¨èããã®ã¯ããªããä¸æè°ãªãã¨ã§ã¯ãªããããããªãããããSwiftãå¦ã¼ãã¨ãã¦ããã©ãããã®ãããã®ããæåã¯è¦å½ãã¤ããªããã¨ã ãããã§ã¯ãããã§ãã·ã§ãã«ã¨ãã¦Swiftãå©ç¨ãã¦ããããã°ã©ãã¼ãã¡ã¯ãã©ã®ããã«ãã¦å¦ãã§ããã®ã ããã å¦ã³æ¹ã¯äººããããã§ãããæ£è§£ã¯ãªãã¨èãã¦ããã ç§ã®å ´åã¯ãæåã«ãã£ããã¨å¦ã³ãæãåããã¦æ £ãããããã£ã¨ä½ç³»çã«å¦ã¶ã¨ããæé ãè¸ããã¨ãå¤ãã æåã®ãã§ã¼ãºã§ã¯ãä½ãåºæ¥ããèªåã®éå ·ç®±ã«ã¯ä½ã追å ãããã®ãã¨ç¥ãããã§ããã次ã®ãã§ã¼ãºã¯å®éã«éå ·ã使ã£ã¦ã¿ã¦ä½¿ãæ¹ãè¦ãããã§ã¼ãºã¨è¨ããã ãããã¦éå ·ç®±å ¨ä½ãè¦æ¸¡ããããã«ãªã£ã¦ããã¨ããã§ãä½ç³»çã«å¦ã¶ãã¨ã§å¹çè¯ãå¦ã¶ãã¨ãåºæ¥ãã¨
å¼ãç¶ãWWDC 2017ã«åå ä¸ã®ãã£ãã(@fromkk)ã§ãã ä»æè´è¬ãã What's New in Foundation ã¨ããã»ãã·ã§ã³ã§çºè¡¨ããã¦ããSwift 4ããFoundationã«æ¡ç¨ããã Codable ãããã³ã«ã«æåããã®ã§ç°¡åã«ç´¹ä»ãããã¨æãã¾ãã å®ç¾© ãããã³ã«ã®å®ç¾©ã¯ãããªæãã§ãã public protocol Encodable { public func encode(to encoder: Encoder) throws } public protocol Decodable { public init(from decoder: Decoder) throws } public typealias Codable = Decodable & Encodable åæ ãã®æ§ãªãã¼ã¿ããã¦ã³ãã¼ãããäºãæ³å®ãã¦ãã¾ãã { "hell
ããã°ã©ãã³ã°è¨èª Swift 㧠iOS ã¢ããªãä½ããiOS ã¢ããªã¯ Apple ãæ´åãã Cocoa Touch ã¨å¼ã°ãããã¬ã¼ã ã¯ã¼ã¯ç¾¤ãå©ç¨ãã¦æ§æããããCocoa Touch ã®ä¸»è¦ãªãã¬ã¼ã ã¯ã¼ã¯ã¯ Foundation 㨠UIKit ã§ãããFoundation ã¯æååãã³ã¬ã¯ã·ã§ã³ã¨ãã£ãåºæ¬çãªã¯ã©ã¹ããã並è¡å¦çããããã¯ã¼ã¯å¦çã®ããã®ã¯ã©ã¹ã¾ã§ãåºæ¬çãªãã¼ã«ãæã£ã¦ãããã¾ã Foundation 㯠iOS ã ãã§ãªããmacOS ã watchOS ãã㦠tvOS ã«ããã¦ã主è¦ãªãã¬ã¼ã ã¯ã¼ã¯ã§ããã UIKit 㯠iOS ã® GUI ãã¬ã¼ã ã¯ã¼ã¯ã§ãããã¢ããªã±ã¼ã·ã§ã³ãæ§æããããã®éè¦ãªæ©è½ã®ã»ã¨ãã©ãæ ã£ã¦ãããGUI ãã¬ã¼ã ã¯ã¼ã¯ã¯ãã©ãããã©ã¼ã æ¯ã«ç°ãªããã®ãç¨æããã¦ãããmacOS ã§ã¯ AppKitãwatchOS
This entry is for Japanese speaker. Those who are interested to contribute R.swift, please refer to this doc ããã¯iOS Advent Calendar 2016ã®12/3ã®è¨äºã§ãã Swiftã§printlnãæ¸ãã¦ãããã¬ãã«ã®ã¨ã³ã¸ãã¢ãä¸é±é(å®ç¨¼åæé ç´8æé)ã§R.swiftã«ã³ã³ããªãã¥ã¼ãããã話ã(ã ã£ããã©ãã¡ã³ãããããå¥ããã¸ã§ã¯ãå§ãã¡ãã£ã¦ã¾ã ãã¼ã¸ããã¦ããªãã-> ãã®è¨äºã®ç¿æ¥2016/12/04ã«ãã¼ã¸ããã¾ããã¼ï¼) Swiftéçºãã¦ãã人ã«ã¨ã£ã¦ã¯å¸¸èãªè©±ãå¤æ°ã ã¨æãã¾ãããAndroidéçºãKotlin触ã£ã¦ãã¦ãSwiftããã£ã¦ã¿ããï¼ã¨ãSwiftã®ã©ã¤ãã©ãªéçºãã¦ã¿ããï¼ã¨ãã人åãã§ããR.swiftã®ã³ã³ããªãã¥ã¼ã
All slide content and descriptions are owned by their creators.
About the content This talk was delivered live in September 2016 at try! Swift NYC. The video was recorded, produced, and transcribed by Realm, and is published here with the permission of the conference organizers. When Saul Mora last talked about functional programming, we saw by using small, micro functions, a nasty, complex and hard to track function could eventually be written as a pipeline o
About the content This talk was delivered live in September 2016 at try! Swift NYC. The video was recorded, produced, and transcribed by Realm, and is published here with the permission of the conference organizers. Rob Napier has been to Monad, to the Functor of Doom. He has seen the map, flattened and lensed. He has folded the infinite, lifted a Maybe, and he would do it all over again. But from
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}