Can Demir
26 posts


Zen -> I hate firefox
Arc -> Abondoned. Don’t care what they say
Chrome-> Should I even need to talk about this?
Safari -> Best engine with worst UI
Best engine with worst UI gives me the absolute hope.
The Browser Company@browsercompany
Today, The Browser Company of New York is entering into an agreement to be acquired by Atlassian for $610M in an all-cash transaction. We will operate independently, with Dia as our focus. Our objective is to bring Dia to the masses. 🔗 More details from our team below
English

@drawsgood You are using ForEach to loop but your loop does not return a View. ForEach designed for views, and it returns a view. Replace ForEach(myArray) with regular loop like "myArray.forEach" or "for item in myArray"
English

@corneliusmark @krzyzanowskim It seems you've run swift example on debug mode. I got decent result on release. (3e-05 vs 7e-05)
To maximize speed, you can use ContiguousArray in Swift and C array in ObjC (for contiguous memory). Keep in mind, swift also has overflow check for array.


English

@krzyzanowskim Nah, we need Objective-C. I made a post about the speed difference between Objective-C and Swift. Objective-C is about 30x faster when iterating over a similar array. x.com/MarkCornelisse…
Cornelius Mark@corneliusmark
Hey iOS engineers, if you're having performance issues. Don't write the algorithm in Swift, instead write it in Objective-C. Here's the proof.
English

we need more CPU
who? we, the future
when? today
why? because SwiftUI needs to loop faster
forums.swift.org/t/do-update-to…

English

@GroovinChip You need to split List into List(selection: _) + ForEach(items) and add Section around ForEach. That way, Section will treat ForEach as a single group and add spacing between SearchTextField and Items.
English

@canTheBot404 Here’s what happens when I wrap with a section. Each item has the spacing, not just the first.


English

Any #swiftui folks know how to add a gap between the search bar and the first list item? This is using .searchable(). @timsneath do you know who I can ask? @hishnash @mattbierner


English

@GroovinChip Assuming you just want a small space, separate List and ForEach, then wrap ForEach with with section.
For a bigger one, you can just add a Spacer along side with first element.
Personally I would use a custom search TextField because searchable offers no customization


English

@To_Me_Digital You probably made the purchase previously, hence you don't get the purchase sheet again. You can remove transactions by going Debug->StoreKit->Manage Transactions.
English

@AndroidDev_News @androiddevnotes It's a dessert made from layers of paper thin dough and nuts (pistachios walnuts almonds) cooked with sweet syrup. Crispy and sweet.
Also, Baklava fits the Android version naming convention.
English

@androiddevnotes Apparently it means "to Wrap up" from Turkish, that's the only explanation I have, haha
English

@androiddevnotes In such cases where return/done button does not exist, we may add a button above keyboard as toolbar or make any interaction outside of keyboard auto-dismiss keyboard. Sometimes we auto dismiss keyboard when field is filled like 2FA code fields.
English

@androiddevnotes 600 is good enough. After you reach the limit, you disable the linter rule on that file and continue to add anyway.
English

Why is the text blue?🤔Another SwiftUI mystery or just me?😅
#buildinpublic #iOSDev #SwiftUI #swiftlang
English

@GroovinChip @TahaTesser @ChristianSelig There is. I usually recommend default as it just works but...
If you want something custom, keep icon size relative to text. Maybe utilize "sidebarRowSize" env value.
Also going over Apple's HIG at least once is nice. Just to have some familiarity. #macOS" target="_blank" rel="nofollow noopener">developer.apple.com/design/human-i…
English

@canTheBot404 @TahaTesser @ChristianSelig Wow, thanks! I’m AFK but I will definitely try that. As long as I have you, here’s another question: are there any guidelines for icon size for these icons? I couldn’t find any documentation about it.
English

Any SwiftUI folks know how to add icons to NavigationLink items in a sidebar for macOS? @ChristianSelig @TahaTesser


English

@Tabingtons Track your feature major update in AppStorage, then do a version comparison with your current version at app launch.
Nil ->Fresh install
Current is bigger ->Already seen it
Current is smaller ->Show whats new
Always set/update current version, even after reset
English

Hi #iOSDev . Looking to implement a ‘what’s new’ sheet in my app. Have a question I can’t find an answer for online.
How can I reset @/AppStorage to false on already installed apps, say when there’s a major update.
#BuildInPublic #SwiftUI
English

@androiddevnotes I heard you wanna decrease number of imports. You don't have to explicitly import Foundation if you already have SwiftUI imported. SwiftUI already imports that in backstage.
English

the iOS app is now opensource
(github.com/androiddevnote…)
0 external dependencies
only 2 imports: SwiftUI and Foundation
X Dev Notes@xdevnotes
tmdb app is now opensource, made in few hours (github.com/androiddevnote…)
English

@GroovinChip @TahaTesser @ChristianSelig You are trying to set label of NavLink twice with that. Try something like this. FYI you are not limited to Label, and use pretty much any view. Or since you have access to binding, using a button is also an option.

English


@xdevnotes Looks like your gitignore isn’t configured properly. That user interface state file is about Xcode, gui state, opened tabs etc. check your gitignore file. You can check out GitHub/gitignore/Swift.gitignore
English

@indiana_sloan @ivcanet @the_AndroidDev @androiddevnotes I don't see how it could go out of hand. How many DZRequest imp do you need? On the second imp, I would start questioning why do we need a new imp. In code review, I shouldn't scroll to top to see which 1 of the 10 imp is used. Naming must be concise
English

@canTheBot404 @ivcanet @the_AndroidDev @androiddevnotes That would get out of hand quickly. And is completely unnecessary when we can just use explicit imports and let the IDE collapse them
English



















