å ¨ã¦ãAppleWatchã ãã§åºæ¥ãæ°ããæå ±ï¼ã¢ã©ã¼ã ï¼ãå¦æ³ãã¦ãã¾ã
Â
ä½ãæ¹æ³æ¡
- èªä½ã®åæè¨ãæ¹è¯
ãããã
ããã°ã©ãã³ã°
- ã¢ã©ã¼ã ç¨ãªã¹ããä½æ
ãã
- å®ç¾©
- Pickerã®å¤ãé åã«ï¼åäºå®ãå ¥ããããã«ãã¾ãã
- æéã¯24æéãåã¯5åééã¨ãã¾ããÂ
- ãªãã»ããæéãçç¥
-
  //bellSet
  @State private var selectionValueTime = [8,8,8,8,8]
  @State private var selectionValueMini = [0,0,0,0,0]
  @State private var selectionValueOffs = [0,0,0,0,0]//ãªãã»ããæéãçç¥
  @State private var selectionValueFlag = [0,0,0,0,0]
  @State private var bellWiewFlag: Int = 0    //0:æè¨ãã  1:ãã«
  @State private var tokeiWiewFlag: Int = 0   //0:ãã¸ã¿ã«ã 1:ã¢ããã°
  Â
  let valueTime = ["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"]
  let valueMini = ["00","05","10","15","20","25","30","35","40","45","50","55"]
  let valueFlag = ["X","O"]
Â
-  Pickerã§ä½æ
- ãªãã»ããæéãçç¥Â
-
Text("No Time  Offset FG")
  .font(.system(size: 16))
Â
ForEach(0 ..< selectionValueTime.count, id: \.self) { numVal in
  HStack{
    Text("\(numVal+1)")
    Picker("", selection: $selectionValueTime[numVal]) {
      ForEach(0 ..< valueTime.count, id: \.self) { num in
        Text(self.valueTime[num])
      }
    }
    .pickerStyle(.wheel)
    .frame(width: 32, height: 36)
    Â
    Picker("", selection: $selectionValueMini[numVal]) {
      ForEach(0 ..< valueMini.count, id: \.self) { num in
        Text(self.valueMini[num])
      }
    }
    .pickerStyle(.wheel)
    .frame(width: 32, height: 36)
    Â
    Text(" ")
      .offset(x: 0, y: 7)
      .font(.system(size: 9))
ãããã//ãªãã»ããæéãçç¥
    Picker("", selection: $selectionValueOffs[numVal]) {
      ForEach(0 ..< valueMini.count, id: \.self) { num in
        Text(self.valueMini[num])
      }
    }
    .pickerStyle(.wheel)
    Â
    .frame(width: 32, height: 36)
    Â
    Picker("", selection: $selectionValueFlag[numVal]) {
      ForEach(0 ..< valueFlag.count, id: \.self) { num in
        Text(self.valueFlag[num])
      }
    }
    .pickerStyle(.wheel)
    .frame(width: 23, height: 36)
    Â
  }
  .font(.system(size: 12))
}
Â
- 24æè¨ã®å
å¨ã«ã¢ã©ã¼ã æå»ã表示ã2024å¹´5æ25æ¥
- æ±æ¸æå»è¡¨ç¤ºç¨é¢æ°ï¼edo_mojibanï¼ãå©ç¨
- ForEachã§é åæ°åï¼ä»åã®ãªã¹ãã¯ï¼åï¼è¡¨ç¤º
-
} else if 1 == bellWiewFlag {
  ForEach(0 ..< selectionValueTime.count, id: \.self) { numVal in
    if 1 == selectionValueFlag[numVal] {
      let dosu00 = dosu(v: Double (selectionValueTime[numVal]) + Double (selectionValueMini[numVal]) * 5.0 / 60.0 )
      edo_mojiban(angle: .degrees(dosu00), jikan: String( numVal + 1 ) )
    }
  }
}
Â
-  課é¡ãããã¾ãã
- å·¦ä¸ã®Pickerã ããç·è²ã«ãªãã¾ããï¼æ³å®å¤ã§ããè½ã¡çãã¦è¦ç´ãã¾ãï¼
- âãæªè§£æ±º
- ã¢ã©ã¼ã æéã§ããããªãã»ããæéååã«ãã«ãé³´ããããã«èãã¦ãã¾ãããããã£ã¦å¿
è¦ãªã®ï¼
- âãç¡ããã¾ãã
- ã¢ã©ã¼ã æå»ãè¨æ¶ã§ããªã
- âã次åå ±åãã¾ã
- ã¢ã©ã¼ã é³orãã¤ãã«ãåºæ¥ã¦ããªã
- å·¦ä¸ã®Pickerã ããç·è²ã«ãªãã¾ããï¼æ³å®å¤ã§ããè½ã¡çãã¦è¦ç´ãã¾ãï¼
ããã
Â