Closed ngtk closed 4 years ago
https://mecid.github.io/2019/09/18/redux-like-state-container-in-swiftui/
There is an issue with UITabBarController where decoding an instance from a storyboard will create some extra views at the left end of the screen. Developers may remove these by applying a workaround. (55310448)
Workaround: To remove the extraneous views from Storyboard, create a subclass of a UITabBarController and add the following snippet in the class’s init(coder:) method:
class WorkaroundTabBarController: UITabBarController {
required init?(coder: NSCoder) {
super.init(coder: coder)
// This must be run immediately after the call to super.
if (tabBar.subviews.count > 1) {
tabBar.subviews[0].isHidden = true
}
}
}
これ👇良くわからない
UITableViewCell labels in storyboards and XIB files do not use localized string values from the strings file at runtime. (52839404)
ref: https://developer.apple.com/documentation/xcode_release_notes/xcode_11_1_release_notes
replaceError(with:)
: エラーを値に変換.
catch(_:)
: エラーを Publisher に変換mapError(_:)
: エラーを別のエラーに変換
let network404Publisher = Result<Void, NetworkError>.Publisher(._404)
/// replaceError(with:)
let r1: Result<Void, Never>.Publisher = network404Publisher
.replaceError(with: ())
/// map(_:)
let r2: Result<Int, NetworkError>.Publisher = network404Publisher
.map { _ -> Int in
1
}
/// mapError(_:)
let r3: Result<Void, とあるError>.Publisher = network404Publisher
.mapError { networkError -> とあるError in
switch networkError {
case ._404:
return .invalidEmail(message: "404だよ")
}
}
/// catch(_:)
let r4: Result<String, とあるError>.Publisher = network404Publisher
.catch { networkError -> Result<String, とあるError>.Publisher in
return .init(.invalidEmail(message: "なんかのエラー"))
}
combineを利用したReactorKit実装
Xcode11.2 beta release noteより
Fixed an issue with UITabBarController where decoding an instance from a storyboard would create extra views at the left end of the screen. If you worked around this issue on Xcode 11.0 or 11.1 by creating a subclass of UITabBarController and hiding extra views in the initializer you can remove the workaround. (55310448)
https://developer.apple.com/documentation/xcode_release_notes/xcode_11_2_beta_release_notes
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
69