I have a TextField in my SwiftUI app for macOS, created as below:
TextField("Enter text here", text: $enteredText)
.font(.title)
It works fine for Latin text. However, for scripts with low descends, like Balinese, Khmer etc, the bottom parts gets clipped:
Is there modifiers I can use to prevent this clipping?
Post
Replies
Boosts
Views
Activity
In my document based SwiftUI app for macOS, I'd like to show a window when the app is launched - showing, among other things, recently opened documents. Very much like Xcode.
I am not sure if this is possible. If it is, I like some pointers on how I can implement this window in my app.
When I create a document based app in SwiftUI for the Mac, I get a lot of benefits for free. One of it is the 'New Document' menu item. My app, however, pulls together many elements into a 'Project', like Xcode does. How can I change the menu item name from 'New Document' to 'New Project' ?
I developing a swiftUI app for macOS. I like the side bar very much. It shows up on the left and I can add a button to open and close it. All this is good. However, I also like a similar panel on the right, so it can serve as an 'inspector' to the content I am editing.
It looks like a right sidebar may not be supported in SwiftUI. So, I tried the following:
NavigationView() {
// Sidebar
VStack(alignment: .leading) {
// My sidebar views here
}
.frame(minWidth: 200, idealWidth: 220, maxWidth: 240)
// Main Content
VStack {
ScrollView {
LazyVGrid() {
// My Grid view here
}
}
}
// Inspector View
VStack(alignment: .leading) {
// Inspector views here
}
.frame(minWidth: 200, idealWidth: 220, maxWidth: 240)
}
My desire was for the Inspector view will be snapped to the right and the main content to fill the center space. The above layout doesn't do that. Instead, the inspector view appears much wider and the main content shrunk.
I can use the divider to resize it accoding to my need. But would love for it to appear as desired on startup.
Is there any other way or workaround I can explore to achieve this?
Hi, I watched the session on how to create and add custom symbols in the SF Symbols app. Will it be possible to create localized versions of our custom symbols? Just like the system symbols that automatically substitute bases on the system locale?
I'm using the document based app template to build a Swift UI app on macOS. It provides a lot of nice benefits. However, I want the File->New Document to say File->New Project instead. How do I change this?