Post

Replies

Boosts

Views

Activity

Reply to iOS 15 and iMessages
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
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’21
Reply to why HStack items not alignnment in SwiftUI?
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)                     }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’21
Reply to iOS 15 and iMessages
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
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Text Alignment not Working
Hey, to center your text inside your text field you need to add the multilineTextAlignment modifier to it with center as argument.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to why HStack items not alignnment in SwiftUI?
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)                     }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’21