Post

Replies

Boosts

Views

Activity

Reply to Programming languages
Language is often a personal choice. In Apple's world, there are 2 : Objective C and Swift. Some swear only by ObjC, other by Swift. IMHO, it is wise to become "expert" in one but also able to at least read and understand the other. This being said, my personal choice is Swift which is gaining momentum. But ObjC is to be there for a while.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’21
Reply to I can not open my inhouse on iOS 15 but it works on iOS 14
"XXXX" needs to be updated The developer of this app needs to update the app to work properly on this iOS version “XXXX”应用尚不兼容 iOS 15。 您需要加载更新或要求开发人员提供更新 如果这是您内部开发的应用程序,只需使用更新版本的 xcode 重新编译,最终是 XCode 13 beta "XXXX" app is not yet compatible with iOS 15. You need to load an update or ask the developer to provide one. If this is an app you developed inhouse, just recompile with a more recent version of xcode, eventually XCode 13 beta
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’21
Reply to Attachment in UITextView
Ok, I understand. I’ve thought about it, but can I place .xib into UITextView? No, you can't and that does not make much sense. Where would it be inside the text ? Do not insert the xib, but just an imageView: What you can do: embed UITextView in a UIView (or a stackView) insert imageView inside this UIView. set constraints to position as you want
Topic: UI Frameworks SubTopic: UIKit Tags:
Jun ’21
Reply to Refreshable lists with 2 columns
If you define a HStack in the List, you should get the effect ForEach (0..<10, id: \.self) { index in HStack { Text("Hello") .frame(width: 200, height: 20, alignment: .center) Text("\(index)") .frame(width: 200, height: 20, alignment: .center) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’21
Reply to Local notifications
Not sure I understand. Do you need to post notification ? If so, that will be like this let center = UNUserNotificationCenter.current() center.delegate = self let requestIdentifier = "RequestID" if value > 10 {         let content = UNMutableNotificationContent() // Build the content content.categoryIdentifier = "alarm" // Then trigger the notification UNUserNotificationCenter.current().delegate = self self.registerCategories() let trigger = UNTimeIntervalNotificationTrigger.init(timeInterval: TimeInterval(1), repeats: false) //set the time interval as needed let request = UNNotificationRequest(identifier:requestIdentifier, content: content, trigger: trigger) center.add(request) {(error) in } }
Jun ’21
Reply to SwiftUI beginner stuck on a code roadblock
What is this quote before var declaration ?         "var chests: [Chest] = load("chest.json")
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Why is this loop not working
Probably your test is in the wrong order while count >= self.countDadJokes { never occurs, as count = 1 to start Change with while count <= self.countDadJokes { or maybe while count < self.countDadJokes {
Replies
Boosts
Views
Activity
Jun ’21
Reply to Why are forum posts locked after two months of inactivity?
Thanks Quinn for being our go between with the development team. Precious help each time.
Replies
Boosts
Views
Activity
Jun ’21
Reply to Programming languages
Language is often a personal choice. In Apple's world, there are 2 : Objective C and Swift. Some swear only by ObjC, other by Swift. IMHO, it is wise to become "expert" in one but also able to at least read and understand the other. This being said, my personal choice is Swift which is gaining momentum. But ObjC is to be there for a while.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to I can not open my inhouse on iOS 15 but it works on iOS 14
"XXXX" needs to be updated The developer of this app needs to update the app to work properly on this iOS version “XXXX”应用尚不兼容 iOS 15。 您需要加载更新或要求开发人员提供更新 如果这是您内部开发的应用程序,只需使用更新版本的 xcode 重新编译,最终是 XCode 13 beta "XXXX" app is not yet compatible with iOS 15. You need to load an update or ask the developer to provide one. If this is an app you developed inhouse, just recompile with a more recent version of xcode, eventually XCode 13 beta
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Attachment in UITextView
Ok, I understand. I’ve thought about it, but can I place .xib into UITextView? No, you can't and that does not make much sense. Where would it be inside the text ? Do not insert the xib, but just an imageView: What you can do: embed UITextView in a UIView (or a stackView) insert imageView inside this UIView. set constraints to position as you want
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to ProgressView Error
Try to set a Float value:                     ProgressView(value: 5.0, total: 15)
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Storyboards not working in Xcode 13
Did you look at the issue Navigator (5 icon from left) to see if you have a warning to update to new configuration ? If so, do it.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to SwiftUI bottom-first List (inverted)
Did you try reversing the array you use with ForEach ? Like : ForEach(myArray.reversed(), id: \.self) { }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Suggestion: Automatically enable watching for your own question
Why not. But there is the counter argument: this would create flows of mails until you turn it off. Eventually that could be set a preference (what default value ?), but there are already so many of them. But probably, it will soon become a reflex for you to turn it on.
Replies
Boosts
Views
Activity
Jun ’21
Reply to Refreshable lists with 2 columns
If you define a HStack in the List, you should get the effect ForEach (0..<10, id: \.self) { index in HStack { Text("Hello") .frame(width: 200, height: 20, alignment: .center) Text("\(index)") .frame(width: 200, height: 20, alignment: .center) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Local notifications
Not sure I understand. Do you need to post notification ? If so, that will be like this let center = UNUserNotificationCenter.current() center.delegate = self let requestIdentifier = "RequestID" if value > 10 {         let content = UNMutableNotificationContent() // Build the content content.categoryIdentifier = "alarm" // Then trigger the notification UNUserNotificationCenter.current().delegate = self self.registerCategories() let trigger = UNTimeIntervalNotificationTrigger.init(timeInterval: TimeInterval(1), repeats: false) //set the time interval as needed let request = UNNotificationRequest(identifier:requestIdentifier, content: content, trigger: trigger) center.add(request) {(error) in } }
Replies
Boosts
Views
Activity
Jun ’21
Reply to Index out of range, SwiftUI
There are 11 items in valori but there are 12 months. Did you forget one value in valori ? if let is not done for that, it is for testing nil.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Index out of range, SwiftUI
Son test that index is valid:  .onTapGesture { withAnimation { if i < valori.count { valori[i] += 100 } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to App icon with strange background
Could you show how the icon looked like in iOS 14 ?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’21