Posts

Post not yet marked as solved
2 Replies
0 Views
I created a background image "carousel" using exactly the strategy you hinted at. I have three @State variables: one is an index to a list of images, one is the selected image name and the third indexes between the two Image views. On the closure of each transition I increment the image index, set the image name on the "hidden" image view, then flip the Image view index. The "old" image slides off and the "new" image slides on.
Post not yet marked as solved
13 Replies
0 Views
Make sure you file a bug report and be very precise with how YOU think it should work. The Apple developers really do pay attention to feedback when they roll out a completely new project like SwiftUI.
Post not yet marked as solved
3 Replies
0 Views
Option-Click your Text declaration, select inspector and set the number of lines you want.
Post marked as solved
3 Replies
0 Views
DOH! I'm such a noob. You still need to mark the font files as "Target Membership" and add them as "Fonts provided by application" in info.plist.
Post marked as solved
3 Replies
0 Views
Have you got it to actually display your custom font? I'm using the following, but it's not actually displaying the custom font, either in the preview or in the simulator. Text("Sample Text Line 1\r\nSample Text Line 2\r\nSample Text Line 3") .font(Font.custom("Montserrat-Bold", size: 60.0)) .fontWeight(.heavy) .color(.white) .multilineTextAlignment(.center) .lineLimit(0)It displays text in the correct size and color, but using the standard font -- not Montserrat-Bold.I tried adding the custom font files to the Assets.xcassets and just dragging the whole font folder into my project. Neither seems to work.
Post not yet marked as solved
2 Replies
0 Views
As long as you provide a username and password that the app reviewers could use to test the app I don’t see why not.