Skip to content

Commit

Permalink
Merge pull request #269 from Raizlabs/hotfix/zeveisenberg/scale-acces…
Browse files Browse the repository at this point in the history
…sibility-examples

Accessiblity scale tweaks
  • Loading branch information
ZevEisenberg authored Feb 7, 2017
2 parents 9e54689 + 3176691 commit caf60be
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Example-iOS/DemoStrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ enum DemoStrings {
let garamondStyle = StringStyle(
.font(UIFont(name: "EBGaramond12-Regular", size: 24)!),
.lineHeightMultiple(1.2),
.adapt(.control)
.adapt(.body)
)

let digits = "\n0123456789"
Expand All @@ -293,7 +293,7 @@ enum DemoStrings {
let garamondStyle = StringStyle(
.font(UIFont(name: "EBGaramond12-Regular", size: 24)!),
.lineHeightMultiple(1.2),
.adapt(.control)
.adapt(.body)
)

let string = "Today is my <number>111<ordinal>th</ordinal></number> birthday!"
Expand All @@ -312,7 +312,7 @@ enum DemoStrings {
let garamondStyle = StringStyle(
.font(UIFont(name: "EBGaramond12-Regular", size: 24)!),
.lineHeightMultiple(1.2),
.adapt(.control)
.adapt(.body)
)

let string = "<name>Johnny</name> was a little boy, but <name>Johnny</name> is no more, for what he thought was <chemical>H<number>2</number>O</chemical> was really <chemical>H<number>2</number>SO<number>4</number></chemical>."
Expand All @@ -330,7 +330,7 @@ enum DemoStrings {
static let stylisticAlternatesExample: NSAttributedString = {
let systemFontStyle = StringStyle(
.font(.systemFont(ofSize: 18)),
.adapt(.control)
.adapt(.body)
)

let password = "68Il14"
Expand All @@ -350,6 +350,7 @@ enum DemoStrings {
let style = StringStyle(
.font(UIFont(name: "EBGaramond12-Regular", size: 24)!),
.paragraphSpacingAfter(12.0),
.adapt(.body),
.xmlRules([
.style("punctuation", StringStyle(.color(.raizlabsRed))),
.style("emoji", StringStyle(.font(.systemFont(ofSize: 24)))),
Expand Down

0 comments on commit caf60be

Please sign in to comment.