For example, if there is folder iOS, iPadOs, macOS, how can I show them in tableview?
Example
iOS
iPadOS
macOS
Should I use FileManager or my own algorithm?
Post
Replies
Boosts
Views
Activity
Let's say there are three tab views,; A,B, and C.
A is in the left side. B is in the middle. C is in the right side.
When I run my app, it shows A by default.
If I want to show B or C by default, what should I do?
NOTE: default means the initial tab view when I start my app.
Hello guys, I'm using Storyboard.
In TableView, using Navigation Controller, how can I show parent cell's name on child cell's navigation title?
For example, there are two cells in the root(the parent) cell; macOS, iOS.
macOS cell has three child cells; big sur, catalina, mojave
iOS cell has three child cells too; 14, 13, 12.
when I touch(click on simulator) macOS, it shows child cells, which are big sur, catalina, and mojave. And in this view(which shows those three cells), how can I show macOS on navigation title(macOS is parent cells).
Stackoverflow links: 1, 2
The screen record is on the first stackoverflow link.
I am trying to make an app based on Notes app.
I set my iPhone text size to the smallest, and when the view changes, the texts on new view's toolbar gets bigger.
Code :
toolbar {
ToolbarItem(placement: .navigationBarTrailing) {
HStack {
Button {
parentList.starred.toggle()
} label: {
Label("Toggle Favorite", systemImage: parentList.starred ? "star.fill" : "star")
.labelStyle(.iconOnly)
.foregroundColor(parentList.starred ? .yellow : .gray)
}
Button(action: editList) {
Label("Edit List", systemImage: "ellipsis.circle")
}
EditButton()
}
}
ToolbarItem(placement: .bottomBar) {
Spacer()
}
ToolbarItem(placement: .status) {
if parentList.childvocabularies!.count == nil {
Text("")
.foregroundColor(.secondary)
.font(.caption)
}
else if parentList.childvocabularies!.count == 1{
Text("\(parentList.childvocabularies!.count) Vocabulary")
.foregroundColor(.secondary)
.font(.caption)
} else {
Text("\(parentList.childvocabularies!.count) Vocabularies")
.foregroundColor(.secondary)
.font(.caption)
}
}
ToolbarItem(placement: .bottomBar) {
Button(action: addItem) {
Label("Add Item", systemImage: "plus")
}
}
}
Is this a bug?