Posts

Post not yet marked as solved
1 Replies
Hey, If you want more information about it please check the Epic Game / Apple trial, a lot of informations have been disclosed on the subject. And it seems that iMessage would never be bring to Android. https://www.cnbc.com/2021/05/03/epic-games-v-apple-trial-apple-says-it-doesnt-want-to-be-android.html
Post marked as solved
1 Replies
Hey, to center your text inside your text field you need to add the multilineTextAlignment modifier to it with center as argument.
Post marked as solved
3 Replies
Hey, it might be what you’re trying to get. HStack(alignment: .top) {                                                  Text(i.name)                                                  Spacer()                                                 GeometryReader { geoProxy in                             Rectangle()                                 .fill(i.color)                                 .frame(width: self.getWidth(width: geoProxy.frame(in: .global).width, value: i.percent) ,height: 10)                                 .offset(x: 0, y: 5) // Allows to put the rectangle on the same baseline as your text                         }                                               Text(String(format: "\(i.percent)", "%.0f"))                             .fontWeight(.bold)                             .padding(.leading,10)                     }