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
{ | |
"e+y+s+m": false, | |
"s+f+a": 4, | |
"a+u+h+r": true, | |
"f+a": true | |
} |
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
{ | |
"adsUserHasRated": false, | |
"downloadsPerAd": 2, | |
"playsPerAd": 2, | |
"downloadsForPrompt": 2, | |
"playsForAds": 2, | |
"downloadsForAds": 2, | |
"adsBackground": false | |
} |
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
{ | |
"adsOnSearchScreen": true, | |
"adsOnMusicDetail": false, | |
"adsOnLaunch": true, | |
"adsOnFinishingDownload": false, | |
"adsOnPlayerScreen": false, | |
"adsOnSetting": false, | |
"adsOnMyLibrary": false, | |
"adsOnPlaylist": false, | |
"adsOnHome": false, |
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
{ | |
"adsOnSearchScreen": true, | |
"adsOnMusicDetail": true, | |
"adsOnLaunch": false, | |
"adsOnFinishingDownload": false, | |
"adsOnPlayerScreen": false, | |
"adsOnSetting": false, | |
"adsOnMyLibrary": false, | |
"adsOnPlaylist": false, | |
"adsOnHome": false, |
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
{ | |
"enableDropbox": true, | |
"enableGoogleDrive": false, | |
"supportedAudioFiles": [ | |
"mp3", | |
"wav" | |
], | |
"supportedVideoFiles" : [ | |
"mov", | |
"mp4" |
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
{ | |
"qft": "+filterui:photo-photo+filterui:imagesize-wallpaper+filterui:aspect-tall", | |
"query": "wallpaper", | |
"adType": "rewardedVideo", | |
"showAds": false, | |
"canSearch": false | |
} |
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
[ | |
{ | |
"name": "All", | |
"image": "" | |
}, | |
{ | |
"name": "BTS", | |
"image": "https://wallpaperaccess.com/full/8337.jpg" | |
}, | |
{ |
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 Foundation | |
func toRoman(number: Int) -> String { | |
guard number < 1000 else { fatalError("Number must be less than 1000") } | |
let romanValues = ["M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I"] | |
let arabicValues = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1] | |
var romanValue = "" |
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 UIKit | |
final class LinearGradientLayer: CALayer { | |
enum Direction { | |
case vertical | |
case horizontal | |
case custom(start: CGPoint, end: CGPoint) | |
var points: (start: CGPoint, end: CGPoint) { | |
switch self { | |
case .vertical: | |
return (CGPoint(x: 0.5, y: 0.0), CGPoint(x: 0.5, y: 1.0)) |
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
func setRequired() { | |
guard var labelText = self.text else { return } | |
if labelText.range(of: "*") == nil { | |
labelText = labelText + "*" | |
} | |
let range = (labelText as NSString).range(of: "*") | |
let attributedString = NSMutableAttributedString(string: labelText) | |
attributedString.addAttributes([.foregroundColor: UIColor.red], range: range) |
NewerOlder