Post

Replies

Boosts

Views

Activity

Reply to How to increase font size of date picker?
To change the attributes of a segmented picker, you can add this init to your View struct:    init() {     //This changes the "thumb" that selects between items     UISegmentedControl.appearance().selectedSegmentTintColor = .red           //This changes the color for the whole "bar" background     UISegmentedControl.appearance().backgroundColor = .purple           //This will change the font size     UISegmentedControl.appearance().setTitleTextAttributes([.font : UIFont.preferredFont(forTextStyle: .headline)], for: .highlighted)     UISegmentedControl.appearance().setTitleTextAttributes([.font : UIFont.preferredFont(forTextStyle: .largeTitle)], for: .normal)           //these lines change the text color for various states     UISegmentedControl.appearance().setTitleTextAttributes([.foregroundColor : UIColor.cyan], for: .highlighted)     UISegmentedControl.appearance().setTitleTextAttributes([.foregroundColor : UIColor.green], for: .selected)   }
Topic: UI Frameworks SubTopic: UIKit Tags:
Mar ’22
Reply to In SwiftUI, How to increase Font Size/Style of a Picker?
I found this: To change the attributes of a segmented picker, you can add this init to your View struct:    init() {     //This changes the "thumb" that selects between items     UISegmentedControl.appearance().selectedSegmentTintColor = .red           //This changes the color for the whole "bar" background     UISegmentedControl.appearance().backgroundColor = .purple           //This will change the font size     UISegmentedControl.appearance().setTitleTextAttributes([.font : UIFont.preferredFont(forTextStyle: .headline)], for: .highlighted)     UISegmentedControl.appearance().setTitleTextAttributes([.font : UIFont.preferredFont(forTextStyle: .largeTitle)], for: .normal)           //these lines change the text color for various states     UISegmentedControl.appearance().setTitleTextAttributes([.foregroundColor : UIColor.cyan], for: .highlighted)     UISegmentedControl.appearance().setTitleTextAttributes([.foregroundColor : UIColor.green], for: .selected)   }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’22
Reply to Navigation bar disappear when rotating view on some devices and simulators
maybe the answer: https://www.hackingwithswift.com/books/ios-swiftui/making-navigationview-work-in-landscape
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Navigation bar disappear when rotating view on some devices and simulators
Or try: .navigationViewStyle(StackNavigationViewStyle())
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to SwiftUI - Determining Current Device and Orientation
Thank you for the code!!! I just add:      else if horizontalSizeClass == .compact && verticalSizeClass == .compact {               Text("iPhone compact") for small devices!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to GeometryReader alignment
One option is this one: https://youtu.be/-APXKvIiK4o But have a problem, for example if the. button the second frame will the a button...
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to 1 duplicate symbol for architecture x86_64 Xcode
Means that you have loaded same functions twice.
Replies
Boosts
Views
Activity
Mar ’22
Reply to How to increase font size of date picker?
To change the attributes of a segmented picker, you can add this init to your View struct:    init() {     //This changes the "thumb" that selects between items     UISegmentedControl.appearance().selectedSegmentTintColor = .red           //This changes the color for the whole "bar" background     UISegmentedControl.appearance().backgroundColor = .purple           //This will change the font size     UISegmentedControl.appearance().setTitleTextAttributes([.font : UIFont.preferredFont(forTextStyle: .headline)], for: .highlighted)     UISegmentedControl.appearance().setTitleTextAttributes([.font : UIFont.preferredFont(forTextStyle: .largeTitle)], for: .normal)           //these lines change the text color for various states     UISegmentedControl.appearance().setTitleTextAttributes([.foregroundColor : UIColor.cyan], for: .highlighted)     UISegmentedControl.appearance().setTitleTextAttributes([.foregroundColor : UIColor.green], for: .selected)   }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to In SwiftUI, How to increase Font Size/Style of a Picker?
I found this: To change the attributes of a segmented picker, you can add this init to your View struct:    init() {     //This changes the "thumb" that selects between items     UISegmentedControl.appearance().selectedSegmentTintColor = .red           //This changes the color for the whole "bar" background     UISegmentedControl.appearance().backgroundColor = .purple           //This will change the font size     UISegmentedControl.appearance().setTitleTextAttributes([.font : UIFont.preferredFont(forTextStyle: .headline)], for: .highlighted)     UISegmentedControl.appearance().setTitleTextAttributes([.font : UIFont.preferredFont(forTextStyle: .largeTitle)], for: .normal)           //these lines change the text color for various states     UISegmentedControl.appearance().setTitleTextAttributes([.foregroundColor : UIColor.cyan], for: .highlighted)     UISegmentedControl.appearance().setTitleTextAttributes([.foregroundColor : UIColor.green], for: .selected)   }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to How to disable position animation in SwiftUI when button style is animated
I have the same problem, my animation is just color change, and all moves up and down.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Why is my provisioning profile failing qualification?
Xcode/Preferences/ManageCertificates/+/“add one by one, total 5”
Replies
Boosts
Views
Activity
Mar ’22
Reply to Provisioning profile doesn't include signing certificate
Xcode/Preferences/ManageCertificates/+/“add one by one, total 5”
Replies
Boosts
Views
Activity
Mar ’22
Reply to App record creation error at validation
Did you try to update to the las SDK ?
Replies
Boosts
Views
Activity
May ’25
Reply to App record creation error at validation
Go to https://appstoreconnect.apple.com/ and verify what is missing
Replies
Boosts
Views
Activity
Jun ’25