Post

Replies

Boosts

Views

Activity

Section Fully Clickable in SwiftUI – NavigationLink Issue
Hi everyone, I’m having an issue with SwiftUI where my entire Section becomes clickable, instead of just the “Edit profile” button. Here’s my code: VStack(alignment: .center) { KFImage(authManager.user?.photoURL) .resizable() .scaledToFill() .frame(width: 80, height: 80) .clipShape(Circle()) Text(authManager.user?.displayName ?? "") .font(.system(.title, design: .rounded)) Text(authManager.user?.email ?? "") .font(.subheadline) .foregroundColor(.gray) NavigationLink { EditProfileView() } label: { Text("Edit profile") .frame(minWidth: 0, maxWidth: .infinity) .font(.system(size: 18)) .padding(10) .foregroundColor(.white) .background(Color.blue) .cornerRadius(25) } .padding(.top, 5) } .frame(maxWidth: .infinity, alignment: .center) } I want only the button to be clickable. How can I fix this? Thanks! Link to issue: https://imgur.com/a/iO9aNSM
1
0
830
Jul ’24
UIImage not fitting in UIImageView frame
I have attached a UIImageView to my Navigation bar title view, however the image exceeds the frame no matter which values I input. Here is the code: override func viewDidLayoutSubviews() { // style the navbar let iconView = UIImageView(frame: CGRect(x: 0, y: 0, width: 100, height: 30)) let image = UIImage(named: "fresh-appbar")! iconView.contentMode = .scaleAspectFit iconView.image = image navigationItem.titleView = iconView } I have also attached an image:
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
618
Sep ’23
'The code signature version is no longer supported' error
Hi all. I am trying to run my app on a physical iPhone, however I keep getting a dialog saying 'Unable to install (insert app name here)'. Clicking on details gives me this: Unable to install "Bitelist" Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620375 User Info: {     DVTErrorCreationDateKey = "2022-05-31 22:03:26 +0000";     IDERunOperationFailingWorker = IDEInstalliPhoneLauncher; } -- The code signature version is no longer supported. Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620375 System Information macOS Version 12.4 (Build 21F79) Xcode 13.4 (20503) (Build 13F17a) Timestamp: 2022-05-31T23:03:26+01:00 Does anyone have a fix to this? All help is appreciated.
7
4
5.3k
May ’23
Navigation title not appearing correctly in SwiftUI
Hi all. I have a navigation title attached to my VStack, however it isn't appearing near the top of the screen like it's supposed to. Here's my code:      NavigationView{       VStack{         Image(club.image)           .resizable()           .scaledToFit()           .frame(height: 300)         Text(club.name)           .font(.system(size: 40, weight: .black))         HStack(alignment: .center, spacing: 20){           Label(title: {             Text(club.league)               .foregroundColor(.secondary)           }, icon: {             Image(systemName: "location.north.circle.fill")               .foregroundColor(.blue)           })           Label(title: {             Text(club.netWorth)               .foregroundColor(.secondary)           }, icon: {             Image(systemName: "dollarsign.circle.fill")               .foregroundColor(.blue)           })         }       }.navigationTitle(club.name)     } Here is an image:
2
0
4.8k
Jan ’22
Section Fully Clickable in SwiftUI – NavigationLink Issue
Hi everyone, I’m having an issue with SwiftUI where my entire Section becomes clickable, instead of just the “Edit profile” button. Here’s my code: VStack(alignment: .center) { KFImage(authManager.user?.photoURL) .resizable() .scaledToFill() .frame(width: 80, height: 80) .clipShape(Circle()) Text(authManager.user?.displayName ?? "") .font(.system(.title, design: .rounded)) Text(authManager.user?.email ?? "") .font(.subheadline) .foregroundColor(.gray) NavigationLink { EditProfileView() } label: { Text("Edit profile") .frame(minWidth: 0, maxWidth: .infinity) .font(.system(size: 18)) .padding(10) .foregroundColor(.white) .background(Color.blue) .cornerRadius(25) } .padding(.top, 5) } .frame(maxWidth: .infinity, alignment: .center) } I want only the button to be clickable. How can I fix this? Thanks! Link to issue: https://imgur.com/a/iO9aNSM
Replies
1
Boosts
0
Views
830
Activity
Jul ’24
UIImage not fitting in UIImageView frame
I have attached a UIImageView to my Navigation bar title view, however the image exceeds the frame no matter which values I input. Here is the code: override func viewDidLayoutSubviews() { // style the navbar let iconView = UIImageView(frame: CGRect(x: 0, y: 0, width: 100, height: 30)) let image = UIImage(named: "fresh-appbar")! iconView.contentMode = .scaleAspectFit iconView.image = image navigationItem.titleView = iconView } I have also attached an image:
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
1
Boosts
0
Views
618
Activity
Sep ’23
'The code signature version is no longer supported' error
Hi all. I am trying to run my app on a physical iPhone, however I keep getting a dialog saying 'Unable to install (insert app name here)'. Clicking on details gives me this: Unable to install "Bitelist" Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620375 User Info: {     DVTErrorCreationDateKey = "2022-05-31 22:03:26 +0000";     IDERunOperationFailingWorker = IDEInstalliPhoneLauncher; } -- The code signature version is no longer supported. Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620375 System Information macOS Version 12.4 (Build 21F79) Xcode 13.4 (20503) (Build 13F17a) Timestamp: 2022-05-31T23:03:26+01:00 Does anyone have a fix to this? All help is appreciated.
Replies
7
Boosts
4
Views
5.3k
Activity
May ’23
Navigation title not appearing correctly in SwiftUI
Hi all. I have a navigation title attached to my VStack, however it isn't appearing near the top of the screen like it's supposed to. Here's my code:      NavigationView{       VStack{         Image(club.image)           .resizable()           .scaledToFit()           .frame(height: 300)         Text(club.name)           .font(.system(size: 40, weight: .black))         HStack(alignment: .center, spacing: 20){           Label(title: {             Text(club.league)               .foregroundColor(.secondary)           }, icon: {             Image(systemName: "location.north.circle.fill")               .foregroundColor(.blue)           })           Label(title: {             Text(club.netWorth)               .foregroundColor(.secondary)           }, icon: {             Image(systemName: "dollarsign.circle.fill")               .foregroundColor(.blue)           })         }       }.navigationTitle(club.name)     } Here is an image:
Replies
2
Boosts
0
Views
4.8k
Activity
Jan ’22
Apple Developer account says 'complete purchase' when I have already purchased a membership.
Hi. Yesterday I purchased the $99 fee to enrol for an Apple Developer account. However, even after paying, I am still being shown the message to 'complete my payment' and my status is pending. Can somebody please tell me what is going on? Thank you.
Replies
2
Boosts
1
Views
1.2k
Activity
Dec ’21
List in SwiftUI not appearing correctly.
I am building a list in SwiftUI. In my view, I want the 'Jesse Lingard' and 'Manchester United' text to be next to the image but they are appearing underneath. How do I fix this?
Replies
2
Boosts
0
Views
955
Activity
Oct ’21