上から下に依存
- アプリA
- アプリB
- アプリC
それぞれレイヤー構成によって複数あり得る:
| public enum ScreenState<Value, Error: Swift.Error> { | |
| case loading | |
| case failed(Error) | |
| case empty | |
| case loaded(Value) | |
| public var isLoading: Bool { | |
| if case .loading = self { return true } | |
| return false | |
| } |
| // | |
| // ContentView.swift | |
| // InfinityTabView | |
| // | |
| // Created by beader on 2022/10/9. | |
| // | |
| import SwiftUI | |
| struct ContentView: View { |
| name: {Project Name} | |
| options: | |
| bundleIdPrefix: {Bundle ID Prefix} | |
| deploymentTarget: | |
| iOS: 13.0 | |
| xcodeVersion: "11.3.1" # 変わらない? | |
| # findCarthageFrameworks: true # 余計なフレームワークまで追加されてしまうためコメントアウト | |
| carthageExecutablePath: mint run Carthage/Carthage carthage |
| // | |
| // ContentView.swift | |
| // TryGeometryReader | |
| // | |
| // Created by satoutakeshi on 2019/12/07. | |
| // Copyright © 2019 satoutakeshi. Licensed under MIT. | |
| // | |
| import SwiftUI |
| name: XXXX | |
| attributes: | |
| LastUpgradeCheck: 1140 | |
| ORGANIZATIONNAME: "kankak, Inc." | |
| options: | |
| bundleIdPrefix: com.xxxx.xxxxxxxx | |
| deploymentTarget: | |
| iOS: 13.1.3 | |
| configs: | |
| Develop Debug: debug |
| // Authoer: The SwiftUI Lab | |
| // Full article: https://swiftui-lab.com/scrollview-pull-to-refresh/ | |
| import SwiftUI | |
| struct RefreshableScrollView<Content: View>: View { | |
| @State private var previousScrollOffset: CGFloat = 0 | |
| @State private var scrollOffset: CGFloat = 0 | |
| @State private var frozen: Bool = false | |
| @State private var rotation: Angle = .degrees(0) |
上から下に依存
それぞれレイヤー構成によって複数あり得る:
最近AppleがProtocol Buffersの公式プラグインをGitHubに公開して話題になったので、実際に使ってみました。APIの通信が速くなったり、型安全に通信処理を書ける など、メリットが多いと感じたので簡単に紹介します。
他の事例だと、iOSオールスターズ2で発表された「これから始めるProtocol Buffers導入」が非常に参考になると思うので併せて読んでみてください。
この記事ではProtocol Buffersの概要について書いています。別途こちらの記事で使い方について サンプルを使って説明している ので、併せて読んでみてください。
| #! bin/sh | |
| NAME=$1 | |
| input="${NAME}Inputs" | |
| output="${NAME}Outputs" | |
| protocol="${NAME}Type" | |
| cat << EOL | |
| protocol ${input} { |
So, you love Slack, but you hate applications with large white backgrounds? Why not use Dark Mode!
Unfortunately, Slack does not have a Dark Mode, although it's on their list of possibilities.
But, don't fret - there is a solution! Because the slack native desktop apps are just wrappers around a web app, we can inject our own CSS to customize the application to our liking.