This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
/// Example of how to get Dynamic Type with custom fonts in SwiftUI. | |
struct ContentView: View { | |
var body: some View { | |
VStack(spacing: 20) { | |
Text("A large title").customFont(.largeTitle) // "Optima-ExtraBlack", 28 | |
Text("A body").customFont(.body) // "Kailasa", 16 | |
Text("A caption").customFont(.caption2) // "IowanOldStyle-Italic", 11 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script is to work round the problem of broken RubyMine dependencies for bundle files. | |
# It uses an undocumented feature for RubyMine (but available in Intellij Idea) to create a | |
# gems library xml file and update the iml file. | |
# | |
# See Rubymine issues: | |
# https://youtrack.jetbrains.com/issue/RUBY-16428 | |
# https://youtrack.jetbrains.com/issue/RUBY-15026 | |
# https://youtrack.jetbrains.com/issue/RUBY-14542 | |
# | |
# Usage: |
NewerOlder