wantedly / ios_night

Let's talk about iOS development -- iOS Night 📱🌙 You might apply to this meetup from
https://www.wantedly.com/companies/wantedly/projects
18 stars 0 forks source link

2019/10/29 19:30~20:30 #72

Closed ngtk closed 4 years ago

ngtk commented 4 years ago

Why

Where

Pearl Jam (Subject to change)

5F, MG Shirokanedai Building (Wantedly, Inc. Tokyo HQ)

Who

You are working for Wantedly? Sure, you can join anytime. If not, you need to contact us first. Or, you can "want to visit" the meetup, which you can find in www.wantedly.com/companies/wantedly/projects.

What

You write topics like below contents and we talk about these on the meetup. Every participant needs to write one topic at least.

Also, you can find new topics from the newsletters:

How

         ・・・

参加者は開催までに話したいことを少なくとも1トピックをコメントしましょう。 ネタ被りを避けるために、まずはタイトルだけでコメントすることを推奨します。 より多くの学びを得るためにどんな内容でもアウトプットを歓迎します!😊

cc/ @wantedly/ios

Edit this template

Previous issue

jiro commented 4 years ago

Regular Expression Decoder

https://github.com/Flight-School/RegularExpressionDecoder

正規表現を用いたデコーダーの実装。

ShotaKashihara commented 4 years ago

Enum cases can now specify defaults for their associated values.

https://twitter.com/johnsundell/status/1146408818206810113

// Swift 5.1
import UIKit

enum EyeLiner {
    case thick(color: UIColor = .black)
    case thin(color: UIColor = .black)
}

let e1: EyeLiner = .thick(color: .red)
let e2: EyeLiner = .thick // 🙅‍♂️ < compile error
let e3: EyeLiner = .thick() // 🙆‍♂️ < ok 
ShotaKashihara commented 4 years ago

Swift 5.1 に導入される Opaque Result Type とは何か

https://qiita.com/koher/items/338d2f2d0c4731e3508f

要約してみる

protocol Animal {
    func foo()
}

struct Cat: Animal {
    let name: String
    func foo() { print("cat") }
}

func makeAnimal() -> some Animal {
    return Cat(name: "ポチ")
}

let cat1: Animal = makeAnimal()
let cat2 = makeAnimal()

MemoryLayout.size(ofValue: cat1) // 40 byte
MemoryLayout.size(ofValue: cat2) // 16 byte
hiranodept commented 4 years ago

Xcode11の新機能 Test Plans

ref: https://developer.apple.com/videos/play/wwdc2019/413/

今まで、個別に実行していたテストのconfiguration設定が複数作れるようになった 🎉 例えば、argumentsやenvironment、localizationなど。 作成したconfiguration分、テストを実行してくれる これで、1箇所に設定が書けるようになる。

テストの実行順序を選べる

UIテストで複数のシミュレータを同時実行する

Automatic Screenshots をONにするとスクショを保存してくれる。 保存場所は DerivedData/PROJECT_NAME/Logs/Test/LogStoreManifest.plist の中(分かりにくい😅)

スクリーンショット 2019-10-29 19 04 27

既存のプロジェクトでTest Plansを使うには

jiro commented 4 years ago

Swiftで将棋プログラミングをしている話

公開はまだしないけど、駒の利きなども考慮して駒の移動ができるところまで実装した。 内部でビットボードの実装もしているけど、計算量や速度の考慮まではできていない。 指し手の探索や学習などといった高度なことはやらず、盤面の表現までを実装する予定。

年末くらいまでにはSwiftUIでUIも一通りつくるように頑張る 💪