https://developer.apple.com/documentation/foundation/locale/4020218-firstdayofweek
Locale | FirstDayOfWeek |
---|---|
ja | sunday |
ja_JP | sunday |
en | sunday |
en_US | sunday |
en-US@fw=wed | wednesday |
https://developer.apple.com/documentation/foundation/locale/4020218-firstdayofweek
Locale | FirstDayOfWeek |
---|---|
ja | sunday |
ja_JP | sunday |
en | sunday |
en_US | sunday |
en-US@fw=wed | wednesday |
import SwiftUI | |
struct TagListView<Data: Collection, Content: View>: View where Data.Element: Hashable { | |
let items: Data | |
let itemSpacing: CGFloat | |
let lineSpacing: CGFloat | |
let alignment: HorizontalAlignment | |
let content: (Data.Element) -> Content | |
@State private var width: CGFloat = 0 |
struct ContentView: View { | |
var body: some View { | |
ZStack(alignment: .top) { | |
B.black.opacity(0.2) | |
} | |
ScrollView(showsIndicators: false) { | |
Button { | |
print(">>>> tap button") | |
} label: { | |
Text("Button") |
import SwiftUI | |
struct ContentView: View { | |
let width: CGFloat = 80 | |
var body: some View { | |
VStack(spacing: 0) { | |
Spacer() | |
HStack { | |
Color.blue.frame(width: width) |
import Foundation | |
extension Locale { | |
var regionEmoji: String? { | |
guard let regionCode = regionCode else { return nil } | |
return regionCode | |
.unicodeScalars | |
.map({ 127397 + $0.value }) | |
.compactMap(UnicodeScalar.init) | |
.map(String.init) |
import SwiftUI | |
struct ContentView: View { | |
var body: some View { | |
NavigationView { | |
NavigationLink("Button1", destination: ChildView()) | |
} | |
.navigationViewStyle(StackNavigationViewStyle()) | |
} | |
import Foundation | |
// NSStringのプロパティ | |
// decomposed | |
// 分解した | |
// precomposed | |
// 構成済み |
import Foundation | |
import PlaygroundSupport | |
PlaygroundPage.current.needsIndefiniteExecution = true | |
DispatchQueue.main.async { | |
print("メインスレッドで非同期実行") | |
} | |
DispatchQueue(label: "").async { | |
print("サブスレッド(直列キュー)で非同期実行") |
RaspberryPiにJenkinsを入れて高級なcronの代わりに使う http://qiita.com/or2/items/9be897ddfe73854ba578
Jenkinsのコンソール出力が読みづらくなっている人向けのメモ http://qiita.com/dakuton/items/b3e0a329378e9e4e9486
sudo apt-get update
### wget https://bit.ly/shtnkgmgi2 -O .gitignore | |
### https://gist.githubusercontent.com/shtnkgm/dfe0a0478a15de11ce93ca6f39223cd5/raw/.gitignore | |
# Xcode | |
# | |
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore | |
## Build generated | |
build/ | |
DerivedData/ |