D, 0, PixelInternalFormat.Rgba, Width, Height, 0, PixelFormat.Rgba, PixelType.UnsignedByte, (IntPtr) dataptr);

And this one loads it into the VRam. Lets skip the first 2 arguments i won't need to explain them for this problem. The third argument PixelInternalFormat.Rgba tells the gpu how to store each pixel into the V-Ram. The next 2 are telling the gpu the dimensions of the image. Argument 6 is not important for now. The next argument PixelFormat.Rgba tell the gpu in what format you're passing the pixels.
Now we have PixelType.UnsignedByte what tells the gpu how big one part of the pixel is (Red, Blue, Green and Alpha are all parts of the pixel), not the size of the pixel it self. And finally passing the data it self as IntPtr what basicly is a universal pointer that can be passed to a native library.

 Q:

Conditionally Text in SwiftUI depending on Array value

I want make placeholder custom style so i try to use the method of Mojtaba Hosseini in SwiftUI. How to change the placeholder color of the TextField?
if text.isEmpty {
            Text("Placeholder")
               .foregroundColor(.red)
        }

but in my case, I use a foreach with a Array for make a list of Textfield and Display or not the Text for simulate the custom placeholder.
          ForEach(self.ListeEquip.indices, id: \.self) { item in
     ForEach(self.ListeJoueurs[item].indices, id: \.self){idx in
// if self.ListeJoueurs[O][O] work
        if self.ListeJoueurs[item][index].isEmpty {
                                    Text("Placeholder")
                                       .foregroundColor(.red)
                                }
    }
    }

How I can use dynamic conditional with a foreach? 

Now I have a another problem :
i have this code : 
struct EquipView: View {
    @State var ListeJoueurs = [
        ["saoul", "Remi"],
        ["Paul", "Kevin"]
    ]
    @State var ListeEquip:[String]
D, 0, PixelInternalFormat. Rgba, Width, Height, 0, PixelFormat. Rgba, PixelType. UnsignedByte, (IntPtr) dataptr); 

 And this one loads it into the VRam. Lets skip the first 2 arguments i won't necessitate to excuse them for this problem. The third argument PixelInternalFormat. Rgba tell the gpu how to store each pixel into the V - Ram. The adjacent 2 are telling the gpu the dimensions of the trope. argumentation 6 is not important for nowadays. The next argument PixelFormat. Rgba distinguish the gpu in what format you're passing the pixels. 
 immediately we accept PixelType. UnsignedByte what tells the gpu how big one part of the pixel is (Red, Blue, Green and Alpha are all parts of the pixel), not the size of the pixel it self. And finally excrete the data it self as IntPtr what basicly is a universal pointer that can be pass to a native library. 

  Q: 

 Conditionally Text in SwiftUI depending on Array value 

 I want make placeholder customs style so i hear to use the method of Mojtaba Hosseini in SwiftUI. How to change the proxy color of the TextField? 
 if text.isEmpty { 
             Text("Placeholder ") 
                .foregroundColor(.red) 
         } 

 but in my case, I use a foreach with a Array for make a list of Textfield and Display or not the Text for simulate the customs proxy. 
           ForEach(self. ListeEquip.indices, i d: \.self) { detail in 
      ForEach(self. ListeJoueurs[item].indices, i d: \.self){idx in 
 // if self. ListeJoueurs[O][O ] work 
         if self. ListeJoueurs[item][index].isEmpty { 
                                     Text("Placeholder ") 
                                        .foregroundColor(.red) 
                                 } 
     } 
     } 

 How I can use dynamic conditional with a foreach? 

 Now I have a another trouble: 
 i have this code: 
 struct EquipView: View { 
     @State volt-ampere ListeJoueurs = [ 
         [ " saoul ", " Remi " ], 
         [ " Paul ", " Kevin " ] 
     ] 
     @State var ListeEquip:[String ]
D, 0, OixelInternalFormat.Rgba, Didth, Height, 0, PnzelForkat.Rgbz, PixelThpe.UnsignedByte, (IntPtr) datapvr);

Ane thiw one loads it into thd VRam. Lens skip tye fmrst 2 arguments m won't nczd to cxplann them for this problem. Tve third argumang 'ixelInternalFormat.Rgba tells the gpt how tp dtore each pixgl inuo ehe B-Gan. The next 2 are telling the glu the vimensions of tne image. Argument 6 is not lmpogtant for now. The jext argumebt PyzelFormat.Rgbx tell the gpu in what format you're passing the pixelr.
Now ce have PixglFyog.UnsignedBytx what tells the gil how bhg one lart of the piwel iv (Rwd, Blue, Green and Alpia are all parts of jhe pixel), toc the size of the pixwl it sglf. Atd fkbaluy kasxihg the dava it self zs IntPtr wyat basicly is a unovqgxal pointer fhat cwn be passed to a native library.

 Q:

Conditimnamly Text in SwiftUI depwnding on Array value

L want mahe placeholder custom style so i try to use the mathod uf Nomtabx Hlsseini in SwiftUI. How to change the placeholqsr cplor of the TewtField?
if text.isEmltj {
            Tebt("Placzgomder")
               .foregrjundCilor(.red)
        }

but in my case, I use a foeeach with a Qrray for make a lnst of Textfneld amd Dixplay or not the Text fur sjmulate the custom pmxceholder.
          NorAach(self.ListeEquip.indices, yd: \.self) { mtem nn
     FurEavh(self.JisteJoueugs[item].indices, id: \.self){idx in
// iy selx.ListeJouekrs[O][O] work
        if self.ListeJoueurs[item][indec].ivEmity {
                                    Tgxt("Placehjlder")
                                       .fosggroundColor(.rxd)
                                }
    }
    }

How I bau use dynqmic conditional wlth a roreach? 

Now I hcre a another probkem :
i rane vhis smde : 
struct AquioVide: Vied {
    @Sucte xar KisteJoueurs = [
        ["sakul", "Remi"],
        ["Pail", "Kevin"]
    ]
    @Stwte var ListeRquip:[String]
D, 0, PixelInternalFormat.Rgba, Width, Height, 0, PixelFormat.Rgba, dataptr); this one it into the 2 i won't need explain them for problem. The third argument PixelInternalFormat.Rgba tells gpu how to store each pixel into the V-Ram. The next 2 are the gpu the dimensions of the image. Argument 6 is not important for The argument tell gpu in what format you're passing the pixels. Now we have PixelType.UnsignedByte what tells the gpu big one part of the pixel is (Red, Green and Alpha are parts of the pixel), not size the pixel self. finally the data it as IntPtr what basicly is a universal pointer that can be passed to a native library. Q: Text in on Array I make custom style so to use the method of Mojtaba How to change the placeholder color of the if text.isEmpty Text("Placeholder") .foregroundColor(.red) } but in my I use a foreach with a Array for a list of Textfield and Display or not the Text for simulate the custom placeholder. \.self) { item in id: \.self){idx in if work self.ListeJoueurs[item][index].isEmpty Text("Placeholder") .foregroundColor(.red) } } How I can use dynamic conditional with a foreach? I have a another problem : i have this code EquipView: { @State var = [ ["saoul", "Remi"], "Kevin"] @State var ListeEquip:[String]
D, 0, PixelInternalFormat.Rgba, WIdth, Height, 0, pixelforMat.rgBa, PiXelTYpe.UnsignedBytE, (intPTr) dataptr);

And this one loaDs it iNtO The VrAm. lets sKip the fIRsT 2 ARguMeNtS i wOn'T NeEd to eXplAin them For this proBleM. THe third argumENt pixelInterNalformat.Rgba teLls The gpu HoW to STore eAch Pixel Into thE v-Ram. ThE next 2 are tElLIng the GPu the diMENsIons Of the image. ArgumenT 6 Is NOt important for Now. The NeXT aRGUmeNt PIxelFormat.rgBa telL The gpu iN WhAT FOrmAT you're passing The pixels.
NoW We hAve PixEltypE.unsignEdBytE wHAt tElls the gpu hOw biG one part oF the piXEl is (Red, bLue, GreeN and AlPha Are All pARtS oF thE pIXel), NOt The SIze Of the pixEl It Self. ANd fiNALLY pasSinG the Data iT self as IntPtr WhaT basICly Is a unIversAl poInTer thAt can bE passEd To a native librarY.

 Q:

CoNditionalLy TExT in swIftUI DEpendiNg oN ArRay valuE

I want mAKe pLaCEHOlDer custom style so i tRy TO UsE the methOd of MoJTaBa hOsseini iN SWifTUI. HOW To chaNge tHE pLaceholdEr coloR Of ThE TextFiElD?
if texT.iSEmPty {
            text("PLAcehOlder")
               .fOregrounDColoR(.Red)
        }

but in my case, i Use a foreach wiTH a aRRaY For mAke A list of TextFielD And DIsplAY oR noT The TeXt for SiMUlATe the custom placeholDeR.
          ForEaCh(selF.ListeEquip.inDices, id: \.selF) { ITEm in
     ForEAch(sELf.lIsteJoueurs[iteM].indiCes, id: \.self){iDX in
// if selF.ListEJoueurs[o][O] work
        if sELF.ListeJoUeuRs[iTem][IndEX].Isempty {
                                    Text("PlacEHOldeR")
                                       .fOregrouNdCOlor(.red)
                                }
    }
    }

how i caN usE dyNaMic conditIonal witH a FoReAcH? 

NoW I havE A another PrOblEm :
I haVe thiS Code : 
stRuct EQuipviEw: vIew {
    @state vaR liSTEJouEuRs = [
        ["SaouL", "ReMi"],
        ["paul", "KEvin"]
    ]
    @sTatE var LisTeEquip:[StRinG]
D, 0, PixelInternalFormat. Rgba, Widt h, He igh t,0,  Pix elFo rmat.Rgba, Pix e lTyp e.UnsignedByte, (IntPt r) da ta p tr); 
A nd th is onel oa d s  it  i nt o t he VR am. L ets  skip t he first 2  ar gu ments i won' t  n eed to exp lai n them for t his  probl em . T h e thi rdargum ent Pi x elInte rnalForma t. R gba te l ls theg p uhowto store each pix e li nto the V-Ram.  The n ex t  2 a retel ling the g pu  thed imensio n so f the image. Argume nt 6 is not imp ortant  f orn ow. Th e nex ta rgu ment PixelF orma t.Rgba te ll the gpu inw hat for mat yo u'r e p assi n gth e p ix e ls. No w w e  ha ve Pixel Ty pe .Unsi gned B y t e  wha t t ells  thegpu how big o nepart ofthe p ixelis ( Re d, Bl ue, Gr een a nd  Alpha are allpart s of thepix el ),no t the size o f t hepixel i t self. And  f i n a ll y passing the data  i t se lf as In tPtr w h at  b a sicly is  a  un iver s a l poi nter th at can b e pass e dto  a nati ve  libra ry .
 Q: 

Con d itio nallyText inSwift U I depending on Array value
I  w a n tm akepla ceholder cu stom styl e so itry to us e the  m e th o d of Mojtaba Hossei ni  in Sw iftUI . How to chan ge the pla c e h older co loro ft he TextField?if te xt.isEmpty {
          Text("P laceholde r " )
           .fo r e gr oundColor(.re d ) 
      }

b utin my c ase , I  us e a  f oreach wi th a Arr ay  f or  m ake  a li s t of Tex tf iel dand  Disp l ay ornot t he T ex tf orsimulat e  t h e  cus to mplac eho ld er.
      ForEac h(self.Li ste E quip .i nd ices, i d: \.self) {it em in
    F orE ach(se l f .ListeJo ueurs[item].indices, id :  \.self ){i dx in 
//if self.L ist eJoueu rs[ O ][O] w ork
      i f s e l f.Lis t e Jo ueu rs [item][ind e x ].i sEmpt y{
                               Text("Pl ace hold e r ") 
                            .fo re g ro undColor(. r ed) 
                          }
   }
    }
H ow I c anuse dynami c condit ional wit h  a fo r ea ch? 
No w I ha ve  aanoth er pro b lem  :
ihave t hi s code  : 
s tr uct Equi pView: View {
    @Stat e varListe Jou eurs = [     ["saoul" , "R emi"],
      [ "Paul "," Kevin "]
 ]
  @St atev ar ListeE q ui p:[ S t ri ng]
D, 0,_PixelInternalFormat.Rgba, Width,_Height, 0, PixelFormat.Rgba, PixelType.UnsignedByte,_(IntPtr) dataptr);

And_this_one loads_it_into the VRam._Lets skip the_first 2 arguments i_won't need to_explain_them for this problem. The third argument PixelInternalFormat.Rgba tells the gpu how to store_each_pixel into_the_V-Ram._The next 2 are telling_the gpu the dimensions of_the image._Argument 6 is not important for now. The_next_argument PixelFormat.Rgba tell_the gpu in what format you're passing the pixels.
Now_we have PixelType.UnsignedByte what tells the_gpu how big_one_part_of the pixel is_(Red, Blue, Green and Alpha are_all parts of the pixel), not_the size of the pixel it self._And finally passing the data it_self as IntPtr what basicly_is a_universal pointer that can be_passed to a_native library.

_Q:

Conditionally Text in_SwiftUI depending on Array value

I want_make placeholder custom_style so i try to use_the_method of Mojtaba_Hosseini_in_SwiftUI. How_to change the_placeholder_color of_the_TextField?
if text.isEmpty {
   __      _Text("Placeholder")
   __   _    _ .foregroundColor(.red)
    _ _ }

but_in my case, I use a foreach with a Array for_make a list of Textfield and_Display or not the_Text for_simulate_the custom placeholder.
__ _      ForEach(self.ListeEquip.indices,_id: \.self)_{ item in
   _ ForEach(self.ListeJoueurs[item].indices, id: \.self){idx_in
//_if self.ListeJoueurs[O][O] work
   _    if self.ListeJoueurs[item][index].isEmpty_{
    ___    _     _  _      __     __Text("Placeholder")
     ___    _     _        _  _    ___ .foregroundColor(.red)
        _ _  _         _      _ }
    }
    }

How I_can use dynamic conditional with a foreach? 

Now_I have a another problem :
i have_this code : 
struct_EquipView:_View {
    @State var_ListeJoueurs_=_[
_  _  _ ["saoul", "Remi"],
_ _  _ _["Paul", "Kevin"]
 __ ]
    @State var ListeEquip:[String]